Fixes
This commit is contained in:
@@ -251,6 +251,12 @@ 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
|
||||||
|
|
||||||
|
# Execute bunkerweb_module if it's enabled
|
||||||
|
module_state=$($BIN/v-ext-modules state bunkerweb_module json | jq -r '.[0].STATE')
|
||||||
|
if [ "$module_state" = "enabled" ]; then
|
||||||
|
$BIN/v-ext-modules-run bunkerweb_module add "$domain"
|
||||||
|
fi
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
$BIN/v-log-action "$user" "Info" "Web" "Added new web domain (Name: $domain)."
|
$BIN/v-log-action "$user" "Info" "Web" "Added new web domain (Name: $domain)."
|
||||||
log_event "$OK" "$ARGUMENTS"
|
log_event "$OK" "$ARGUMENTS"
|
||||||
|
|||||||
@@ -170,6 +170,12 @@ check_result $? "Proxy restart failed" > /dev/null
|
|||||||
$BIN/v-restart-web-backend "$restart" "$version"
|
$BIN/v-restart-web-backend "$restart" "$version"
|
||||||
check_result $? "PHP restart failed" > /dev/null
|
check_result $? "PHP restart failed" > /dev/null
|
||||||
|
|
||||||
|
# Execute bunkerweb_module if it's enabled
|
||||||
|
module_state=$($BIN/v-ext-modules state bunkerweb_module json | jq -r '.[0].STATE')
|
||||||
|
if [ "$module_state" = "enabled" ]; then
|
||||||
|
$BIN/v-ext-modules-run bunkerweb_module delete "$domain"
|
||||||
|
fi
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
$BIN/v-log-action "$user" "Info" "Web" "Deleted web domain (Name: $domain)."
|
$BIN/v-log-action "$user" "Info" "Web" "Deleted web domain (Name: $domain)."
|
||||||
log_event "$OK" "$ARGUMENTS"
|
log_event "$OK" "$ARGUMENTS"
|
||||||
|
|||||||
Reference in New Issue
Block a user