Skip to content
Snippets Groups Projects
Commit 578a4dca authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added info on unattended-upgrades test failure.

parent ebae3805
No related branches found
No related tags found
No related merge requests found
......@@ -6,15 +6,14 @@ set -e
PATH=/usr/bin:/bin:/usr/sbin:/sbin
DEBIAN_FRONTEND=noninteractive
echo "Testing apt-get install"
echo "Testing apt-get install."
echo "Clean repository"
echo "Clean repository."
apt-get clean
#Testing if sl package exists and remove it
# Testing if sl package exists and remove it
if ( dpkg -s sl >/dev/null 2>&1 ); then
echo "Removing already installed testing package"
echo "Removing already installed testing package."
apt-get remove -y sl
fi
......@@ -25,8 +24,9 @@ apt-get remove -y sl
if [ ! -f /etc/apt/apt.conf.d/20auto-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."
exit 1
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