Fixes 3
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
# www.domain.tld type will be automatically assigned to the domain unless
|
||||
# "none" is transmited as argument. If ip have associated dns name, this
|
||||
# domain will also get the alias domain-tpl.$ipname. An alias with the ip
|
||||
# name is useful during the site testing while dns isn't moved to server yet.
|
||||
# name is useful during the site testing while dns isn't moved to server yaliet.
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variables & Functions #
|
||||
@@ -255,6 +255,9 @@ check_result $? "Proxy restart failed" > /dev/null
|
||||
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"
|
||||
if [ -n "%$ALIAS" ]; then
|
||||
$BIN/v-ext-modules-run bunkerweb_module alias "$domain" "$ALIAS"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Logging
|
||||
|
||||
Reference in New Issue
Block a user