bundles/apt: fix "set -x" call
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-05-02 10:45:21 +02:00
parent c548a88ee7
commit 68fed2439d
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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"