mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-09-08 19:20:23 +02:00
To avoid chowning mail conf folder if it does not exists
This commit is contained in:
@@ -151,8 +151,10 @@ if [ ! -z "$mail_data" ]; then
|
||||
exim_user="Debian-exim"
|
||||
fi
|
||||
# Chowning mail conf files to exim user
|
||||
find $HOMEDIR/$user/conf/mail/$domain -user root \
|
||||
-exec chown $exim_user {} \;
|
||||
if [ -d "$HOMEDIR/$user/conf/mail/$domain" ]; 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
|
||||
|
||||
Reference in New Issue
Block a user