Allow mail symlink to HDD

This commit is contained in:
dpeca 2019-12-31 17:35:53 +01:00 committed by GitHub
parent 19a0812367
commit 1bdd8dd6b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,7 +45,16 @@ is_object_valid 'user' 'USER' "$user"
is_object_unsuspended 'user' 'USER' "$user"
is_domain_new 'mail' "$domain"
is_package_full 'MAIL_DOMAINS'
is_dir_symlink $HOMEDIR/$user/mail
# Allow mail symlink to HDD
check_symlink=1
symlink=$(readlink $HOMEDIR/$user/mail)
if [ "$symlink" = "/hdd/home/$user/mail" ]; then
check_symlink=0
fi
if [ $check_symlink -eq 1 ]; then
is_dir_symlink $HOMEDIR/$user/mail
fi
#----------------------------------------------------------#