diff --git a/bundles/apt/files/upgrade-and-reboot b/bundles/apt/files/upgrade-and-reboot index 3f4ddf7..fec55e6 100644 --- a/bundles/apt/files/upgrade-and-reboot +++ b/bundles/apt/files/upgrade-and-reboot @@ -1,6 +1,6 @@ #!/bin/bash -set -xeuo pipefail +set -euo pipefail # With systemd, we can force logging to the journal. This is better than # spamming the world with cron mails. You can then view these logs using @@ -13,6 +13,8 @@ then exec 2> >(logger -t upgrade-and-reboot -p user.error) fi +set -x + statusfile="/var/tmp/unattended_upgrades.status" # Workaround, because /var/tmp is usually 1777 [[ "$UID" == 0 ]] && chown root:root "$statusfile"