From 68fed2439d6ac83b0b520eb65c67960cf3e4a43e Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 2 May 2021 10:45:21 +0200 Subject: [PATCH] bundles/apt: fix "set -x" call --- bundles/apt/files/upgrade-and-reboot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"