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,10 +49,12 @@ 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue