mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
restart nginx only if it is enabled
This commit is contained in:
parent
3e8f6b622b
commit
94944001e3
1 changed files with 5 additions and 3 deletions
|
@ -49,11 +49,13 @@ if [ "$restart" != 'no' ]; then
|
|||
exit $E_RESTART
|
||||
fi
|
||||
|
||||
if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||
$BIN/v-restart-proxy
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Logging
|
||||
log_event "$OK" "$EVENT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue