From cbcaa180b3785d64df1f48b491626c44630ee6f5 Mon Sep 17 00:00:00 2001 From: Raine Date: Fri, 20 Oct 2023 15:46:08 +0200 Subject: [PATCH] fix: server init should be run in their dir --- tools/server-setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/server-setup.sh b/tools/server-setup.sh index 9d5af4f..ebed4ce 100644 --- a/tools/server-setup.sh +++ b/tools/server-setup.sh @@ -24,10 +24,12 @@ set -e if [ -d "servers/$HOSTNAME/setup.d" ]; then echo "running server specific setup scripts..." - for s in servers/$HOSTNAME/setup.d/*; do - echo "running $s..." + cd servers/$HOSTNAME + for s in setup.d/*; do + echo "running (servers/$HOSTNAME/)$s..." sh $s done + cd - fi for s in tools/server-setup.d/*; do