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

Check for docker

parent 419140b5
Branches
No related tags found
No related merge requests found
...@@ -69,6 +69,14 @@ else ...@@ -69,6 +69,14 @@ else
less /var/log/clamav.log less /var/log/clamav.log
fi fi
df -h
# Check docker is running
if [ ! -z "`echo $MODS | grep -i collabora`" ]
then
docker ps -a
fi
# Restart services # Restart services
services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \ services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \
$EXTRAS_SERVICES_TO_RESTART" $EXTRAS_SERVICES_TO_RESTART"
...@@ -82,13 +90,6 @@ else ...@@ -82,13 +90,6 @@ else
awk '/^[ \t]*(server_name|server_alias)/{gsub(/;$/, "", $2); print "https://"$2}' /etc/nginx/*-enabled/* | sort -u awk '/^[ \t]*(server_name|server_alias)/{gsub(/;$/, "", $2); print "https://"$2}' /etc/nginx/*-enabled/* | sort -u
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
# Check if reeboot is requird # Check if reeboot is requird
last_kernel="$(dpkg -l | awk '/linux-image-[0-9]/{print $2}' | sort -rn | head -n 1)" last_kernel="$(dpkg -l | awk '/linux-image-[0-9]/{print $2}' | sort -rn | head -n 1)"
running_kernel="linux-image-$(uname -r)" running_kernel="linux-image-$(uname -r)"
...@@ -96,4 +97,11 @@ if [ "$last_kernel" != "$running_kernel" ] ...@@ -96,4 +97,11 @@ 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
df -h
# 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 to comment