File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,10 @@ salt=$(generate_password "$PW_MATRIX" "8")
5555md5=" {MD5}$( $BIN /v-generate-password-hash md5 $salt <<< $password ) "
5656
5757if [[ " $MAIL_SYSTEM " =~ exim ]]; then
58- quota=$( grep $account $HESTIA /data/users/${user} /mail/${domain} .conf)
59- quota=$( echo $quota | awk ' { print $7 }' | sed -e " s/'//g" )
60- quota=$( echo $quota | cut -d " =" -f 2 | sed -e " s/unlimited/0/g" )
58+ quota=$( get_object_value " mail/$domain " ' ACCOUNT' " $account " ' $QUOTA' )
59+ if [ " $quota " = ' unlimited' ]; then
60+ quota=0
61+ fi
6162 sed -i " /^$account :/d" $HOMEDIR /$user /conf/mail/$domain /passwd
6263 str=" $account :$md5 :$user :mail::$HOMEDIR /$user ::userdb_quota_rule=*:storage=${quota} M"
6364 echo $str >> $HOMEDIR /$user /conf/mail/$domain /passwd
You can’t perform that action at this time.
0 commit comments