mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Update v-change-web-domain-tpl
This commit is contained in:
parent
cac3b0617f
commit
3ac0abe6c0
1 changed files with 20 additions and 3 deletions
|
@ -51,12 +51,29 @@ is_web_template_valid "$template"
|
||||||
# Parsing domain values
|
# Parsing domain values
|
||||||
get_domain_values 'web'
|
get_domain_values 'web'
|
||||||
local_ip=$(get_real_ip $IP)
|
local_ip=$(get_real_ip $IP)
|
||||||
|
ipv6=$IP6
|
||||||
|
|
||||||
|
# Deleting vhost configuration IPv4
|
||||||
|
if [ ! -z "$local_ip" ]; then
|
||||||
|
old=$local_ip
|
||||||
|
del_web_config "$WEB_SYSTEM" "$TPL.tpl"
|
||||||
|
|
||||||
|
# Deleting SSL configuration and certificates
|
||||||
|
if [ "$SSL" = 'yes' ]; then
|
||||||
|
del_web_config "$WEB_SYSTEM" "$TPL.stpl"-
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Deleting domain
|
# Deleting domain
|
||||||
|
if [ ! -z "$IP6" ]; then
|
||||||
|
old=$IP6
|
||||||
del_web_config "$WEB_SYSTEM" "$TPL.tpl"
|
del_web_config "$WEB_SYSTEM" "$TPL.tpl"
|
||||||
|
|
||||||
|
# Deleting SSL configuration and certificates
|
||||||
if [ "$SSL" = 'yes' ]; then
|
if [ "$SSL" = 'yes' ]; then
|
||||||
del_web_config "$WEB_SYSTEM" "$TPL.stpl"
|
del_web_config "$WEB_SYSTEM" "$TPL.stpl"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Defining variables for new vhost config
|
# Defining variables for new vhost config
|
||||||
prepare_web_domain_values
|
prepare_web_domain_values
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue