fix: server init should be run in their dir

This commit is contained in:
Strix 2023-10-20 15:46:08 +02:00
parent ab9970715a
commit cbcaa180b3
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -24,10 +24,12 @@ set -e
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..."
for s in servers/$HOSTNAME/setup.d/*; do cd servers/$HOSTNAME
echo "running $s..." for s in setup.d/*; do
echo "running (servers/$HOSTNAME/)$s..."
sh $s sh $s
done done
cd -
fi fi
for s in tools/server-setup.d/*; do for s in tools/server-setup.d/*; do