Gbib auto updates: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
By default the Gbib checks every minute if a flag file on the hgDownload server is more recent than the date of the last update of the Gbib. This check is randomly spread over 30 seconds (crontab + /root/cronUpdate.sh). | By default the Gbib update script /root/updateBrowser.sh checks every minute if a flag file on the hgDownload server is more recent than the date of the last update of the Gbib. This check is randomly spread over 30 seconds (crontab + /root/cronUpdate.sh). | ||
By supplying the parameter "force" to updateBrowser, the box will skip this check and update without checking the flag file. | |||
If the file on hgDownload is newer than the flagfile, it will start the update (/root/updateBrowser.sh): | If the file on hgDownload is newer than the flagfile, it will start the update (/root/updateBrowser.sh): | ||
Line 11: | Line 13: | ||
# Run hgMirror to hide some tracks on hg19 and remove some searches from hg19 | # Run hgMirror to hide some tracks on hg19 and remove some searches from hg19 | ||
updateBrowser.sh also accepts an option: either "alpha" or " | updateBrowser.sh also accepts an option: either "alpha", "beta" or "devbox". These pull the CGIs from hgwdev. They don't use rsync but a normal http download which has to be prepared first with "boxPrep alpha|beta|devbox" as qateam on hgwdev. | ||
Note that if you have updated to alpha | Note that if you have updated to alpha/beta/devbox state once, then the box won't update anymore from hgdownload until the next Sunday, when hgdownload is recreated. | ||
Note: Will have to move updateBrowser.sh and hg.conf to hgdownload for release. | Note: Will have to move updateBrowser.sh and hg.conf to hgdownload for release. | ||
auto updates can be deactivated on a box with autoUpdateOff and reactivated with autoUpdateOn. | auto updates can be deactivated on a box with autoUpdateOff and reactivated with autoUpdateOn. |
Revision as of 13:45, 17 April 2014
By default the Gbib update script /root/updateBrowser.sh checks every minute if a flag file on the hgDownload server is more recent than the date of the last update of the Gbib. This check is randomly spread over 30 seconds (crontab + /root/cronUpdate.sh).
By supplying the parameter "force" to updateBrowser, the box will skip this check and update without checking the flag file.
If the file on hgDownload is newer than the flagfile, it will start the update (/root/updateBrowser.sh):
- Update the update script itself from hgwdev.soe.ucsc.edu/browserbox and also update the hg.conf from there
- Update all existing /gbdb files
- Update all mysql files
- Update all hgcentral files + patch the blat server table
- Patch the menu to remove hgNear and add hgMirror
- Place the symlink to /media from htdocs/folders
- Run hgMirror to hide some tracks on hg19 and remove some searches from hg19
updateBrowser.sh also accepts an option: either "alpha", "beta" or "devbox". These pull the CGIs from hgwdev. They don't use rsync but a normal http download which has to be prepared first with "boxPrep alpha|beta|devbox" as qateam on hgwdev.
Note that if you have updated to alpha/beta/devbox state once, then the box won't update anymore from hgdownload until the next Sunday, when hgdownload is recreated.
Note: Will have to move updateBrowser.sh and hg.conf to hgdownload for release.
auto updates can be deactivated on a box with autoUpdateOff and reactivated with autoUpdateOn.