Skip to content
Snippets Groups Projects
Verified Commit 0c1eb4d1 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

test_apt trigger warning not fail

parent b697b00a
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do ...@@ -18,7 +18,7 @@ while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
if (( $lock_counter > $lock_timeout )); then if (( $lock_counter > $lock_timeout )); then
echo "APT is reported as locked for more than $lock_timeout seconds now..." echo "APT is reported as locked for more than $lock_timeout seconds now..."
echo "Either a big upgrade is running or it is hung, please take a look" echo "Either a big upgrade is running or it is hung, please take a look"
exit 1 exit 3
fi fi
done done
set -e set -e
...@@ -41,7 +41,7 @@ if [ ! -f /etc/apt/apt.conf.d/20auto-upgrades ]; then ...@@ -41,7 +41,7 @@ if [ ! -f /etc/apt/apt.conf.d/20auto-upgrades ]; then
if [ ! -f /etc/apt/apt.conf.d/50unattended-upgrades ]; then if [ ! -f /etc/apt/apt.conf.d/50unattended-upgrades ]; then
echo "Automatic security updates not enabled." echo "Automatic security updates not enabled."
echo "Perhaps the unattended-upgrades package is not installed." echo "Perhaps the unattended-upgrades package is not installed."
exit 1 exit 3
fi fi
fi fi
echo "Automatic security updates enabled." echo "Automatic security updates enabled."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment