diff --git a/tools/server-docker-compose.sh b/tools/server-docker-compose.sh index 97911b3..c58e5ff 100644 --- a/tools/server-docker-compose.sh +++ b/tools/server-docker-compose.sh @@ -2,13 +2,13 @@ # manage docker-compose with this macro -if ! [ -d "servers/$(hostname)" ]; then - echo "couldn't find servers/$(hostname)" +if ! [ -d "servers/$HOSTNAME" ]; then + echo "couldn't find servers/$HOSTNAME" exit 1 fi -dc_args="-p $(hostname)" -for f in servers/$(hostname)/docker-compose.d/*.yml; do +dc_args="-p $HOSTNAME" +for f in servers/$HOSTNAME/docker-compose.d/*.yml; do dc_args="$dc_args -f $f" done