mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
compact syntax for web restart
This commit is contained in:
parent
bea30a0896
commit
b5b9069ece
1 changed files with 6 additions and 6 deletions
|
@ -39,20 +39,20 @@ is_object_value_exist 'web' 'DOMAIN' "$domain" '$LETSENCRYPT'
|
|||
#----------------------------------------------------------#
|
||||
|
||||
# Delete SSL
|
||||
$BIN/v-delete-web-domain-ssl $user $domain >/dev/null 2>&1
|
||||
$BIN/v-delete-web-domain-ssl $user $domain $restart >/dev/null 2>&1
|
||||
check_result $? "SSL delete" >/dev/null
|
||||
|
||||
update_object_value 'web' 'DOMAIN' "$domain" '$LETSENCRYPT' 'no'
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Updating letsencrypt flag
|
||||
update_object_value 'web' 'DOMAIN' "$domain" '$LETSENCRYPT' 'no'
|
||||
|
||||
# Restarting web
|
||||
if [ "$restart" != 'no' ]; then
|
||||
$BIN/v-restart-web $restart
|
||||
check_result $? "Web restart failed" >/dev/null
|
||||
fi
|
||||
$BIN/v-restart-web $restart
|
||||
check_result $? "Web restart failed" >/dev/null
|
||||
|
||||
# Logging
|
||||
log_event "$OK" "$ARGUMENTS"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue