diff --git a/scp_and_reload.sh b/scp_and_reload.sh index 214ee97..e099cf5 100644 --- a/scp_and_reload.sh +++ b/scp_and_reload.sh @@ -9,7 +9,7 @@ chmod 600 .ssh/id_rsa for file in $CHFILENAMES; do if [[ $file == *"zone" ]]; then scp $file "$PLUGIN_USER"@"$PLUGIN_HOSTS":"$PLUGIN_TARGET"/$file - ZONE = $(echo $file | sed 's/\.zone//') + ZONE=$(echo $file | sed 's/\.zone//') ssh "PLUGIN_USER"@"$PLUGIN_HOSTS" nsd-control reload $ZONE fi done