mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Write quota without units inside mail passwd entry
The default "exim4.conf.template" already appends "M" size unit to mail quotas read from the "passwd" file.
This commit is contained in:
parent
ddee8801a4
commit
73cea541f2
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
|
|||
quota=$(echo $quota | awk '{ print $7 }' | sed -e "s/'//g" )
|
||||
quota=$(echo $quota | cut -d "=" -f 2 | sed -e "s/unlimited/0/g")
|
||||
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}M"
|
||||
str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}"
|
||||
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue