2b81d0dc87502b8b33161deb8ba66dfd842e756b max Mon Apr 14 07:30:53 2014 -0700 cosmetic changes to make gbib more distinct from main site and also toremove links that direct user back to main site (unless required, like suggestion box), refs #12717 diff --git src/browserbox/root/updateBrowser.sh src/browserbox/root/updateBrowser.sh index b20f6f2..c804e07 100755 --- src/browserbox/root/updateBrowser.sh +++ src/browserbox/root/updateBrowser.sh @@ -71,75 +71,93 @@ RSYNCSRC="rsync://hgwdev.soe.ucsc.edu" RSYNCOPTS="-ltrv" RSYNCCGIBIN=cgi-bin RSYNCHTDOCS=htdocs fi if [ "$1" == "beta" ] ; then echo updating from beta server RSYNCSRC="rsync://hgwdev.soe.ucsc.edu" RSYNCOPTS="-ltrv" RSYNCCGIBIN=cgi-bin-beta RSYNCHTDOCS=htdocs-beta fi echo -echo Now updating the genome browser programs, html files and data files: +echo Now updating the genome browser software and data: # update CGIs echo updating CGIs... rsync --delete --delete-excluded $RSYNCOPTS $RSYNCSRC/$RSYNCCGIBIN /usr/local/apache/cgi-bin/ --exclude=hg.conf --exclude edw* --exclude *private --exclude hgNearData/** chown -R www-data.www-data /usr/local/apache/cgi-bin/* echo updating HTML files... -rsync --delete --delete-excluded $RSYNCOPTS $RSYNCSRC/$RSYNCHTDOCS/ /usr/local/apache/htdocs/ --include **/customTracks/*.html --exclude ENCODE/ --exclude *.bw --exclude *.gz --exclude favicon.ico --exclude folders --exclude ancestors/** --exclude admin/** --exclude goldenPath/customTracks/*/* --exclude images/mammalPsg/** +rsync --delete $RSYNCOPTS $RSYNCSRC/$RSYNCHTDOCS/ /usr/local/apache/htdocs/ --include **/customTracks/*.html --exclude ENCODE/ --exclude *.bw --exclude *.gz --exclude favicon.ico --exclude folders --exclude ancestors/** --exclude admin/** --exclude goldenPath/customTracks/*/* --exclude images/mammalPsg/** --exclude style/gbib.css --exclude images/title.jpg --exclude images/homeIconSprite.png chown -R www-data.www-data /usr/local/apache/htdocs/ #wget http://hgwdev.soe.ucsc.edu/favicon.ico -O /usr/local/apache/htdocs/favicon.ico echo updating GBDB files... rsync $RSYNCOPTS --existing rsync://hgdownload.cse.ucsc.edu/gbdb/hg19/ /data/gbdb/hg19/ chown -R www-data.www-data /data/gbdb/ echo updating MYSQL files - browser will not work during the MYSQL update # inspired by http://forums.mysql.com/read.php?35,45577,47063#msg-47063 # it doesn't work if I use two mysql invocations, as 'flush tables with read lock' # is only valid as long as the session is open # so I use the SYSTEM command echo "FLUSH TABLES WITH READ LOCK; SYSTEM rsync $RSYNCOPTS --existing rsync://hgdownload.cse.ucsc.edu/mysql/hg19/ /data/mysql/hg19/; SYSTEM chown -R mysql.mysql /data/mysql/; UNLOCK TABLES;" | mysql echo updating hgcentral database echo "FLUSH TABLES WITH READ LOCK; SYSTEM rsync $RSYNCOPTS --existing rsync://hgdownload.cse.ucsc.edu/mysql/hgcentral/ /data/mysql/hgcentral/; SYSTEM chown -R mysql.mysql /data/mysql/hgcentral; UNLOCK TABLES;" | mysql # update blat servers mysql hgcentral -e 'UPDATE blatServers SET host=CONCAT(host,".cse.ucsc.edu")' # the box does not support HAL right now, remove the ecoli hubs mysql hgcentral -e 'delete from hubPublic where hubUrl like "%nknguyen%"' echo patching menu cp /usr/local/apache/htdocs/inc/globalNavBar.inc /tmp/navbar.inc +# remove mirrors and downloads menu +sed -i '/