Gbib auto updates

From genomewiki
Revision as of 16:18, 11 April 2014 by Max (talk | contribs)
Jump to navigationJump to search

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).

If the file on hgDownload is newer than the flagfile, it will start the update (/root/updateBrowser.sh):

  1. Update the update script itself from hgwdev.soe.ucsc.edu/browserbox and also update the hg.conf from there
  2. Update all existing /gbdb files
  3. Update all mysql files
  4. Update all hgcentral files + patch the blat server table
  5. Patch the menu to remove hgNear and add hgMirror
  6. Place the symlink to /media from htdocs/folders
  7. Run hgMirror to hide some tracks on hg19 and remove some searches from hg19

updateBrowser.sh also accepts an option: either "alpha" or "beta". These pull the CGIs from hgwdev. They only work on the box on hgwdev because of restrictions in the rsyncd on hgwdev (could be changed).

Note that if you have updated to alpha or beta 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.