We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 310a379 commit a2dab6cCopy full SHA for a2dab6c
bin/v-change-domain-owner
@@ -151,8 +151,10 @@ if [ ! -z "$mail_data" ]; then
151
exim_user="Debian-exim"
152
fi
153
# Chowning mail conf files to exim user
154
- find $HOMEDIR/$user/conf/mail/$domain -user root \
155
- -exec chown $exim_user {} \;
+ if [ -d "$HOMEDIR/$user/conf/mail/$domain" ]; then
+ find $HOMEDIR/$user/conf/mail/$domain -user root \
156
+ -exec chown $exim_user {} \;
157
+ fi
158
159
# Rebuild config
160
$BIN/v-unsuspend-mail-domain $user $domain no >> /dev/null 2>&1
0 commit comments