mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Wrong order of steps in v-change-domain-owner, fixed
This commit is contained in:
parent
a2dab6c94a
commit
2f73044746
1 changed files with 5 additions and 5 deletions
|
@ -144,6 +144,11 @@ if [ ! -z "$mail_data" ]; then
|
||||||
find $HOMEDIR/$user/mail/$domain -user $owner \
|
find $HOMEDIR/$user/mail/$domain -user $owner \
|
||||||
-exec chown -h $user {} \;
|
-exec chown -h $user {} \;
|
||||||
|
|
||||||
|
# Rebuild config
|
||||||
|
$BIN/v-unsuspend-mail-domain $user $domain no >> /dev/null 2>&1
|
||||||
|
$BIN/v-rebuild-mail-domains $owner no
|
||||||
|
$BIN/v-rebuild-mail-domains $user
|
||||||
|
|
||||||
# Checking exim username for later chowning
|
# Checking exim username for later chowning
|
||||||
exim_user="exim";
|
exim_user="exim";
|
||||||
check_exim_username=$(grep -c '^Debian-exim:' /etc/passwd)
|
check_exim_username=$(grep -c '^Debian-exim:' /etc/passwd)
|
||||||
|
@ -155,11 +160,6 @@ if [ ! -z "$mail_data" ]; then
|
||||||
find $HOMEDIR/$user/conf/mail/$domain -user root \
|
find $HOMEDIR/$user/conf/mail/$domain -user root \
|
||||||
-exec chown $exim_user {} \;
|
-exec chown $exim_user {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Rebuild config
|
|
||||||
$BIN/v-unsuspend-mail-domain $user $domain no >> /dev/null 2>&1
|
|
||||||
$BIN/v-rebuild-mail-domains $owner no
|
|
||||||
$BIN/v-rebuild-mail-domains $user
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update counters
|
# Update counters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue