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
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