mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
compact syntax for web restart
This commit is contained in:
parent
20ebed376c
commit
bea30a0896
1 changed files with 6 additions and 8 deletions
|
@ -174,15 +174,13 @@ echo "DOMAIN='$domain' IP='$ip' IP6='' ALIAS='$ALIAS' TPL='$WEB_TEMPLATE'\
|
||||||
SUSPENDED='no' TIME='$time' DATE='$date'" >> $USER_DATA/web.conf
|
SUSPENDED='no' TIME='$time' DATE='$date'" >> $USER_DATA/web.conf
|
||||||
|
|
||||||
# Restarting web server
|
# Restarting web server
|
||||||
if [ "$restart" != 'no' ]; then
|
$BIN/v-restart-web $restart
|
||||||
$BIN/v-restart-web
|
check_result $? "Web restart failed" >/dev/null
|
||||||
check_result $? "Web restart failed" >/dev/null
|
|
||||||
|
|
||||||
# Restarting proxy server
|
# Restarting proxy server
|
||||||
if [ ! -z "$PROXY_SYSTEM" ]; then
|
if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||||
$BIN/v-restart-proxy
|
$BIN/v-restart-proxy $restart
|
||||||
check_result $? "Proxy restart failed" >/dev/null
|
check_result $? "Proxy restart failed" >/dev/null
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue