Skip to content
Snippets Groups Projects
Verified Commit 1f68d75d authored by David Beniamine's avatar David Beniamine
Browse files

Do security upgrades not done by unattended-upgrades

parent 2d6b461e
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ then
aptitude upgrade
else
unattended-upgrade -d
apt-get install `apt-get -s dist-upgrade | awk '/^Inst.*Security/{print $2}'`
fi
# Update modules
......@@ -97,11 +98,3 @@ if [ "$last_kernel" != "$running_kernel" ]
then
echo "Running on an old kernel, reboot required"
fi
# Verify security upgrades are all done
upgradesremaining=`apt-get -s dist-upgrade |grep "^Inst" |grep -i securi`
if [ ! -z "$upgradesremaining" ]
then
echo "\tSOME SECURITY UPGRADES HAVE NOT BEEN DONE $upgradesremaining"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment