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
Branches
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ then ...@@ -32,6 +32,7 @@ then
aptitude upgrade aptitude upgrade
else else
unattended-upgrade -d unattended-upgrade -d
apt-get install `apt-get -s dist-upgrade | awk '/^Inst.*Security/{print $2}'`
fi fi
# Update modules # Update modules
...@@ -97,11 +98,3 @@ if [ "$last_kernel" != "$running_kernel" ] ...@@ -97,11 +98,3 @@ if [ "$last_kernel" != "$running_kernel" ]
then then
echo "Running on an old kernel, reboot required" echo "Running on an old kernel, reboot required"
fi 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