From b4fce1806234ec5604514e249333274a9c0f7e74 Mon Sep 17 00:00:00 2001 From: Raine Date: Fri, 20 Oct 2023 02:09:35 +0200 Subject: [PATCH] fix: stuff from server-docker-compose.sh --- tools/server-docker-compose.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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