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
|
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
|
||||||
|
|
Loading…
Reference in a new issue