This commit is contained in:
parent
8ee58135ce
commit
d6153ad67c
@ -13,14 +13,14 @@ for file in $CHFILENAMES; do
|
|||||||
echo "SCP of $file started"
|
echo "SCP of $file started"
|
||||||
scp $file "$PLUGIN_USER"@"$PLUGIN_HOSTS":"$PLUGIN_TARGET"/$file
|
scp $file "$PLUGIN_USER"@"$PLUGIN_HOSTS":"$PLUGIN_TARGET"/$file
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "SCP failed" > &2
|
echo "SCP failed" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
ZONE=$(echo $file | sed 's/\.zone//')
|
ZONE=$(echo $file | sed 's/\.zone//')
|
||||||
echo "Reload $ZONE zone"
|
echo "Reload $ZONE zone"
|
||||||
ssh "PLUGIN_USER"@"$PLUGIN_HOSTS" nsd-control reload $ZONE
|
ssh "PLUGIN_USER"@"$PLUGIN_HOSTS" nsd-control reload $ZONE
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Reload of zone failed" > &2
|
echo "Reload of zone failed" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user