1
0
Fork 0
forked from ahurac/dotfiles

updateall : script de mise à jour pour Docker

This commit is contained in:
Ahurac 2023-12-15 19:46:18 +01:00
parent 4fa22b2801
commit 541008da72

View file

@ -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