From 874fa83fe395e6ecdefe10dba0c52385e7a4e604 Mon Sep 17 00:00:00 2001 From: Raine Date: Thu, 26 Oct 2023 16:45:20 +0200 Subject: [PATCH] fix: run server specific setup after def setup --- tools/server-setup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/server-setup.sh b/tools/server-setup.sh index 0724c87..f63b091 100755 --- a/tools/server-setup.sh +++ b/tools/server-setup.sh @@ -23,6 +23,13 @@ rm /tmp/$$-ssh-output set -e +for s in tools/server-setup.d/*; do + echo "running $s..." + $s | while read line; do + echo "$s: $line" + done +done + if [ -d "servers/$HOSTNAME/setup.d" ]; then echo "running server specific setup scripts..." cd servers/$HOSTNAME @@ -34,10 +41,3 @@ if [ -d "servers/$HOSTNAME/setup.d" ]; then done cd - fi - -for s in tools/server-setup.d/*; do - echo "running $s..." - $s | while read line; do - echo "$s: $line" - done -done