14 lines
187 B
Text
14 lines
187 B
Text
|
#!/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
|