Skip to content

Commit cb1659b

Browse files
committed
Fix: removing the domain object from web.conf breaks scripts that check if the web domain is present (v-delete-web-domain-ssl-force in this case)
1 parent ff141e9 commit cb1659b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-delete-web-domain

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ if [ ! -z "$WEB_BACKEND" ]; then
6666
$BIN/v-delete-web-domain-backend $user $domain $restart
6767
fi
6868

69-
# Deleting domain from web.conf
70-
sed -i "/DOMAIN='$domain'/ d" $USER_DATA/web.conf
71-
7269
# Deleting vhost configuration
7370
del_web_config "$WEB_SYSTEM" "$TPL.tpl"
7471

@@ -80,6 +77,9 @@ if [ "$SSL" = 'yes' ]; then
8077
rm -f $USER_DATA/ssl/$domain.*
8178
fi
8279

80+
# Deleting domain from web.conf
81+
sed -i "/DOMAIN='$domain'/ d" $USER_DATA/web.conf
82+
8383
# Deleting proxy
8484
if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
8585
del_web_config "$PROXY_SYSTEM" "$PROXY.tpl"

0 commit comments

Comments
 (0)