c2487553f4e16ce6cf28e2fb9c91f8613f0a86aa chmalee Tue Dec 19 15:17:16 2017 -0800 Install curl on gbib if not already present, used for checking which mysql server is closest, refs #20733 diff --git src/browserbox/root/updateBrowser.sh src/browserbox/root/updateBrowser.sh index f361bdd..793daa8 100755 --- src/browserbox/root/updateBrowser.sh +++ src/browserbox/root/updateBrowser.sh @@ -232,30 +232,38 @@ if apt-cache policy imagemagick | grep "Installed: .none." > /dev/null; then echo - Installing imagemagick apt-get update apt-get --no-install-recommends install -y imagemagick apt-get -y autoremove fi # install mysql-python for hgGeneGraph, actually cgi-bin/pyLib/hgLib.py if apt-cache policy python-mysqldb | grep "Installed: .none." > /dev/null; then echo - Installing mysql-python apt-get update apt-get --no-install-recommends install -y python-mysqldb apt-get -y autoremove fi +# install curl for checking if we are closer to European or US mirror +if apt-cache policy curl | grep "Installed: .none." > /dev/null; then + echo - Installing curl + apt-get update + apt-get --no-install-recommends install -y curl + apt-get -y autoremove +fi + echo echo - Updating the genome browser software via rsync: # CGI-BIN and HTDOCS: # the parameter "hgwdev" copies over only the beta/alpha CGIs from hgwdev if [ "$1" == "hgwdev" ] ; then # note the missing -u option to RSYNC: in hgwdev mode, we want to overwrite everything. # On a development machine, the developer might have touched a file # for testing. We want to make sure that all local files are overwritten by the # files on hgwdev RSYNCOPTS="-ltrvh" user=$2 dirExt=$3 if [ "$user" == "" ]; then