mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Update v-suspend-web-domain, allowing restart=no
This commit is contained in:
parent
af7b658bfb
commit
1848c36784
1 changed files with 8 additions and 6 deletions
|
@ -80,12 +80,14 @@ fi
|
||||||
update_object_value 'web' 'DOMAIN' "$domain" '$SUSPENDED' 'yes'
|
update_object_value 'web' 'DOMAIN' "$domain" '$SUSPENDED' 'yes'
|
||||||
increase_user_value "$user" '$SUSPENDED_WEB'
|
increase_user_value "$user" '$SUSPENDED_WEB'
|
||||||
|
|
||||||
|
if [ "$restart" = "yes" ]; then
|
||||||
# Restarting web server
|
# Restarting web server
|
||||||
$BIN/v-restart-web $restart
|
$BIN/v-restart-web $restart
|
||||||
check_result $? "Web restart failed" >/dev/null
|
check_result $? "Web restart failed" >/dev/null
|
||||||
|
|
||||||
$BIN/v-restart-proxy $restart
|
$BIN/v-restart-proxy $restart
|
||||||
check_result $? "Proxy restart failed" >/dev/null
|
check_result $? "Proxy restart failed" >/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
log_event "$OK" "$ARGUMENTS"
|
log_event "$OK" "$ARGUMENTS"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue