fix: server init should be run in their dir
This commit is contained in:
parent
ab9970715a
commit
cbcaa180b3
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue