fix: setup server exec

This commit is contained in:
Strix 2023-10-22 18:05:27 +02:00
parent 89e7f8ead2
commit 7ad7d838a3
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -28,12 +28,16 @@ if [ -d "servers/$HOSTNAME/setup.d" ]; then
cd servers/$HOSTNAME
for s in setup.d/*; do
echo "running (servers/$HOSTNAME/)$s..."
sh $s
$s | while read line; do
echo "$s: $line"
done
done
cd -
fi
for s in tools/server-setup.d/*; do
echo "running $s..."
sh $s
$s | while read line; do
echo "$s: $line"
done
done