From 541008da726812d37f468ce0fb9050554b716fcd Mon Sep 17 00:00:00 2001 From: Ahurac Date: Fri, 15 Dec 2023 19:46:18 +0100 Subject: [PATCH] =?UTF-8?q?updateall=20:=20script=20de=20mise=20=C3=A0=20j?= =?UTF-8?q?our=20pour=20Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/updateall/scripts/50-docker | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/updateall/scripts/50-docker diff --git a/config/updateall/scripts/50-docker b/config/updateall/scripts/50-docker new file mode 100644 index 0000000..2f6bba8 --- /dev/null +++ b/config/updateall/scripts/50-docker @@ -0,0 +1,13 @@ +#!/bin/bash -x + +[ "$(whoami)" != root ] && exec sudo "$0" "$@" + +cd /opt/docker || exit + +for i in *; do (set -e + cd "$i" + docker-compose pull + docker-compose up -d +) & done + +wait