Skip to content

Commit e18ca0a

Browse files
author
Kristan Kenney
committed
Merge branch 'fix/1082_v-change-domain-owner' into staging/fixes
2 parents 04ab6cd + 00b4671 commit e18ca0a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/v-change-domain-owner

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ if [ ! -z "$web_data" ]; then
9494
$BIN/v-unsuspend-web-domain $user $domain no >> /dev/null 2>&1
9595
$BIN/v-rebuild-web-domains $owner no
9696
$BIN/v-rebuild-web-domains $user
97+
98+
# Cleanup old config
99+
rm -rf $HOMEDIR/$owner/conf/web/$domain/
97100
fi
98101

99102
# DNS domain
@@ -121,6 +124,9 @@ if [ ! -z "$dns_data" ]; then
121124
$BIN/v-rebuild-dns-domains $owner no
122125
$BIN/v-rebuild-dns-domains $user
123126

127+
# Cleanup old config
128+
rm -f $HOMEDIR/$owner/conf/dns/$domain.db
129+
124130
# Resync dns cluster
125131
if [ ! -z "$DNS_CLUSTER" ]; then
126132
v-sync-dns-cluster

0 commit comments

Comments
 (0)