fixed ssh user variable
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
38425a9027
commit
f6fc52a669
@ -18,7 +18,7 @@ for file in $CHFILENAMES; do
|
|||||||
fi
|
fi
|
||||||
ZONE=$(echo $file | sed 's/\.zone//')
|
ZONE=$(echo $file | sed 's/\.zone//')
|
||||||
echo "Reload $ZONE zone"
|
echo "Reload $ZONE zone"
|
||||||
ssh -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "PLUGIN_USER"@"$PLUGIN_HOSTS" nsd-control reload $ZONE
|
ssh -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$PLUGIN_USER"@"$PLUGIN_HOSTS" nsd-control reload $ZONE
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Reload of zone failed" 1>&2
|
echo "Reload of zone failed" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user