bundles/apt: fix statusfile output of unattended upgrades
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
7631ff9a5e
commit
1d450b9829
2 changed files with 5 additions and 3 deletions
|
@ -41,10 +41,12 @@ trap 'rm -f "$softlockdir"/UNATTENDED' EXIT
|
|||
DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef dist-upgrade
|
||||
)
|
||||
ret=$?
|
||||
|
||||
echo "apt-get dist-upgrade exited $ret"
|
||||
echo "$ret" > "$statusfile"
|
||||
|
||||
if (( $ret != 0 ))
|
||||
then
|
||||
echo "apt-get dist-upgrade exited $ret"
|
||||
echo "$ret" > "$statusfile"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue