mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -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 \
|
||||
-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
|
||||
exim_user="exim";
|
||||
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 \
|
||||
-exec chown $exim_user {} \;
|
||||
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
|
||||
|
||||
# Update counters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue