restart nginx only if it is enabled

This commit is contained in:
Serghey Rodin 2015-05-29 01:53:31 +03:00
commit 94944001e3

View file

@ -49,9 +49,11 @@ if [ "$restart" != 'no' ]; then
exit $E_RESTART exit $E_RESTART
fi fi
$BIN/v-restart-proxy if [ ! -z "$PROXY_SYSTEM" ]; then
if [ $? -ne 0 ]; then $BIN/v-restart-proxy
exit $E_RESTART if [ $? -ne 0 ]; then
exit $E_RESTART
fi
fi fi
fi fi