docker-compose/thinkcentre/startall.sh

11 lines
251 B
Bash
Raw Normal View History

#!/bin/bash
2024-03-26 13:53:59 +02:00
if [ $(basename $(readlink $PWD)) != $(hostname) ]; then
echo "Incorrect directory for host"
exit 1
fi
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done