]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/cron.reboot
Move ddaccess sync out of the locked area and background it
[dak.git] / config / debian / cron.reboot
index b0129733422ee1ff4e8e4ec40e13f356a4cd1654..78c0e9ba62e3cfbbb0386e7f6541474aae8fe63b 100755 (executable)
@@ -18,6 +18,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
@@ -25,6 +26,11 @@ set -u
 # the important part here)
 set -E
 
+# We sleep a while here, as cron - and as such @reboot jobs like this
+# one - are started pretty early during boot. With parts of the system
+# still missing, most noticable for us is a not-yet-started postgres...
+sleep 75
+
 # import the general variable set.
 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
 . $SCRIPTVARS