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