Browse Source

Merge branch 'fix/1082_v-change-domain-owner' into staging/fixes

Kristan Kenney 5 years ago
parent
commit
e18ca0aa40
1 changed files with 6 additions and 0 deletions
  1. 6 0
      bin/v-change-domain-owner

+ 6 - 0
bin/v-change-domain-owner

@@ -94,6 +94,9 @@ if [ ! -z "$web_data" ]; then
     $BIN/v-unsuspend-web-domain $user $domain no >> /dev/null 2>&1
     $BIN/v-rebuild-web-domains $owner no
     $BIN/v-rebuild-web-domains $user
+
+    # Cleanup old config
+    rm -rf $HOMEDIR/$owner/conf/web/$domain/
 fi
 
 # DNS domain
@@ -121,6 +124,9 @@ if [ ! -z "$dns_data" ]; then
     $BIN/v-rebuild-dns-domains $owner no
     $BIN/v-rebuild-dns-domains $user
 
+    # Cleanup old config
+    rm -f $HOMEDIR/$owner/conf/dns/$domain.db
+
     # Resync dns cluster
     if [ ! -z "$DNS_CLUSTER" ]; then
         v-sync-dns-cluster