X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.reboot;h=78c0e9ba62e3cfbbb0386e7f6541474aae8fe63b;hb=11c5e4d559120ac40c31b27c9422c79dfa5e0960;hp=241dd84670be4b9d155bf64d172887fc989ed423;hpb=6411bdb24f02bb6ab902502ae4b0c78bf7dc9034;p=dak.git diff --git a/config/debian/cron.reboot b/config/debian/cron.reboot index 241dd846..78c0e9ba 100755 --- a/config/debian/cron.reboot +++ b/config/debian/cron.reboot @@ -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 @@ -39,7 +45,7 @@ DEBUG=0 PROGRAM="dinstall_reboot" # where do we want mails to go? For example log entries made with error() -if [ "x$(hostname -s)x" != "xriesx" ]; then +if [ "x$(hostname -s)x" != "xfranckx" ]; then # Not our ftpmaster host MAILTO=${MAILTO:-"root"} else