bundles/apt: log stdout and stderr separately in upgrade-and-reboot
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
4bd61fedde
commit
65490b1d20
1 changed files with 3 additions and 6 deletions
|
@ -5,13 +5,10 @@
|
|||
# "journalctl -rat upgrade-and-reboot".
|
||||
if which logger >/dev/null 2>&1
|
||||
then
|
||||
# Dump stdout to logger, which will then put everything into the
|
||||
# journal.
|
||||
# Dump stdout and stderr to logger, which will then put everything
|
||||
# into the journal.
|
||||
exec 1> >(logger -t upgrade-and-reboot -p user.info)
|
||||
|
||||
# Make stdout and stderr the same. We don't care about the
|
||||
# distinction anyway.
|
||||
exec 2>&1
|
||||
exec 2> >(logger -t upgrade-and-reboot -p user.error)
|
||||
fi
|
||||
|
||||
statusfile="/var/tmp/unattended_upgrades.status"
|
||||
|
|
Loading…
Reference in a new issue