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,11 +49,13 @@ if [ "$restart" != 'no' ]; then
exit $E_RESTART exit $E_RESTART
fi fi
if [ ! -z "$PROXY_SYSTEM" ]; then
$BIN/v-restart-proxy $BIN/v-restart-proxy
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit $E_RESTART exit $E_RESTART
fi fi
fi fi
fi
# Logging # Logging
log_event "$OK" "$EVENT" log_event "$OK" "$EVENT"