X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.reboot;h=dc802dc2579ad368b9fce4ff9f766d1a90f6a456;hb=773f4286615587294d6e6acfb850df53a661bbc5;hp=26d507e47c0263bcd28930deb2650bf90c653923;hpb=56c670d4b1dd0d73a38f9e6d47d48356b8cc3407;p=dak.git diff --git a/config/debian/cron.reboot b/config/debian/cron.reboot index 26d507e4..dc802dc2 100755 --- a/config/debian/cron.reboot +++ b/config/debian/cron.reboot @@ -26,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 @@ -40,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" != "xfranckx" ]; then +if [[ ${HOSTNAME} != franck ]]; then # Not our ftpmaster host MAILTO=${MAILTO:-"root"} else