X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.reboot;h=26d507e47c0263bcd28930deb2650bf90c653923;hb=6e012f42e8cfdb8487564a2ff34554d31d53a2af;hp=b3c0b09a6e46fe9e100079764d20bd14c9468870;hpb=1c29cf2b20f05eceb1d6355363cf4963469394c0;p=dak.git diff --git a/config/debian/cron.reboot b/config/debian/cron.reboot index b3c0b09a..26d507e4 100755 --- a/config/debian/cron.reboot +++ b/config/debian/cron.reboot @@ -18,11 +18,16 @@ # 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 +# substitutions and subshells and whatnot, but for us the functions is +# the important part here) +set -E # import the general variable set. -export SCRIPTVARS=/srv/ftp.debian.org/dak/config/debian/vars +export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars . $SCRIPTVARS # common functions are "outsourced" @@ -35,7 +40,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