Skip to content
Snippets Groups Projects
Commit 0045848f authored by Elian Loraux's avatar Elian Loraux
Browse files

Stop maintenance service

parent aefd1ee4
Branches
No related tags found
1 merge request!13Lancer le service de maintenance à la mise à jour des serveurs docker
......@@ -121,9 +121,14 @@ else
awk '/^[ \t]*(server_name|server_alias)/{gsub(/;$/, "", $2); print "https://"$2}' /etc/nginx/*-enabled/* | sort -u
fi
# If traefik module is enable
if id "dockerweb" >/dev/null 2>&1; then
if [ -d "/home/dockerweb/maintenance" ]; then
cd /home/dockerweb/maintenance
docker-compose down
fi
# List all traefik domain
if id "dockerweb" >/dev/null 2>&1; then
echo "===== list of domain ===="
echo "--- With one liner docker ---"
docker ps -qa | xargs docker inspect | awk '/traefik.http.routers.*.rule/{print $2}' | sed -e 's/^"Host(`//' -e 's/`)",//' -e 's/`,`/\n/'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment