This commit is contained in:
Alexey Berezhok
2026-05-11 23:28:47 +03:00
parent adef1a98bb
commit 9d1afcdf28
3 changed files with 38 additions and 11 deletions

View File

@@ -254,7 +254,7 @@ 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"
$BIN/v-ext-modules-run bunkerweb_module add "$domain" "$ip"
if [ -n "%$ALIAS" ]; then
$BIN/v-ext-modules-run bunkerweb_module alias "$domain" "$ALIAS"
fi