updateall : script de mise à jour pour Docker
This commit is contained in:
parent
4fa22b2801
commit
541008da72
1 changed files with 13 additions and 0 deletions
13
config/updateall/scripts/50-docker
Normal file
13
config/updateall/scripts/50-docker
Normal 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
|
Loading…
Reference in a new issue