fix: run server specific setup after def setup

This commit is contained in:
Strix 2023-10-26 16:45:20 +02:00
parent 36bb23433e
commit 874fa83fe3
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -23,6 +23,13 @@ rm /tmp/$$-ssh-output
set -e 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 if [ -d "servers/$HOSTNAME/setup.d" ]; then
echo "running server specific setup scripts..." echo "running server specific setup scripts..."
cd servers/$HOSTNAME cd servers/$HOSTNAME
@ -34,10 +41,3 @@ if [ -d "servers/$HOSTNAME/setup.d" ]; then
done done
cd - cd -
fi fi
for s in tools/server-setup.d/*; do
echo "running $s..."
$s | while read line; do
echo "$s: $line"
done
done