|
|
@@ -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
|