15 lines
205 B
Text
Executable file
15 lines
205 B
Text
Executable file
#!/bin/sh
|
|
|
|
[ "$(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
|
|
|
|
docker image prune -f
|
|
|
|
wait
|