fixed ssh user variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jochen Welzel 2021-01-18 18:19:37 +01:00
parent 38425a9027
commit f6fc52a669

View File

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