Skip to content
Snippets Groups Projects
Commit aec7c3d1 authored by Florent Thiery's avatar Florent Thiery
Browse files

detect if automatic security updates are enabled or not, refs #20851

parent 5e988b80
No related branches found
No related tags found
No related merge requests found
...@@ -17,3 +17,10 @@ fi ...@@ -17,3 +17,10 @@ fi
# Installation testing package sl # Installation testing package sl
apt-get update && apt-get install -y sl && apt-get remove -y sl apt-get update && apt-get install -y sl && 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"
exit 1
fi
fi
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