321f7113cce89ab3b5555fe2e7a1f677deadaf61 max Fri Apr 11 07:40:07 2014 -0700 Committing all config files for the browserbox, refs #11957 diff --git src/browserbox/root/cronUpdate.sh src/browserbox/root/cronUpdate.sh new file mode 100755 index 0000000..f6ef3d9 --- /dev/null +++ src/browserbox/root/cronUpdate.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# run from crontab to update the browser + +# only update browser if the "noAutoUpdate" flagfile does not exist + +if [ -f /root/noAutoUpdate ]; then + exit; +fi + +# sleep a little bit, so we don't hammer the rsync server +sleep $[RANDOM%30]m + +/root/updateBrowser.sh