mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-23 06:35:56 -07:00
Allow mail symlink to HDD
This commit is contained in:
parent
19a0812367
commit
1bdd8dd6b1
1 changed files with 10 additions and 1 deletions
|
@ -45,7 +45,16 @@ is_object_valid 'user' 'USER' "$user"
|
||||||
is_object_unsuspended 'user' 'USER' "$user"
|
is_object_unsuspended 'user' 'USER' "$user"
|
||||||
is_domain_new 'mail' "$domain"
|
is_domain_new 'mail' "$domain"
|
||||||
is_package_full 'MAIL_DOMAINS'
|
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
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue