From aaee9d92c8067d22bde80a0d41af7d7c29ee914c Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Fri, 5 Jan 2018 17:00:09 +0100 Subject: [PATCH] List services to check --- upgradeAll.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/upgradeAll.sh b/upgradeAll.sh index 62084b4..8ba338a 100644 --- a/upgradeAll.sh +++ b/upgradeAll.sh @@ -43,3 +43,10 @@ services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \ $EXTRAS_SERVICES_TO_RESTART" [ ! -z "$services" ] && systemctl restart $services checkrestart +echo -e "\tPlease check that the following services are up and running" +if [ "${WEB_SERVER}" == "apache2" ] +then + apache2ctl -S 2>/dev/null | awk '/namevhost/{print "https://"$4}' | sort -u | grep -v "127.0...1" +else + awk '/^[ \t]*(server_name|server_alias)/{gsub(/;$/, "", $2); print "https://"$2}' /etc/nginx/*-enabled/* | sort -u +fi -- GitLab