Minor Fix
This commit is contained in:
parent
19aa03da0d
commit
c91db0ca19
2 changed files with 2 additions and 2 deletions
|
@ -2867,7 +2867,7 @@ function fixQuotaForEmailsPostfix3x(){
|
|||
if [ -e "$mailLimitFile" ]; then
|
||||
hasQueryInMailboxLimitFile=$(cat "$mailLimitFile" | grep -o "query")
|
||||
if [ ! -z "$hasQueryInMailboxLimitFile" ]; then
|
||||
sed -i "s/^query/query = SELECT quota*1048576 FROM emailusers WHERE email='%s'/g" "$mailLimitFile"
|
||||
sed -i "s/^query.*/query = SELECT quota*1048576 FROM emailusers WHERE email='%s'/g" "$mailLimitFile"
|
||||
else
|
||||
echo -e "query = SELECT quota*1048576 FROM emailusers WHERE email='%s'" >> "$mailLimitFile"
|
||||
fi
|
||||
|
|
|
@ -2598,7 +2598,7 @@ function fixQuotaForEmailsPostfix3x(){
|
|||
if [ -e "$mailLimitFile" ]; then
|
||||
hasQueryInMailboxLimitFile=$(cat "$mailLimitFile" | grep -o "query")
|
||||
if [ ! -z "$hasQueryInMailboxLimitFile" ]; then
|
||||
sed -i "s/^query/query = SELECT quota*1048576 FROM emailusers WHERE email='%s'/g" "$mailLimitFile"
|
||||
sed -i "s/^query.*/query = SELECT quota*1048576 FROM emailusers WHERE email='%s'/g" "$mailLimitFile"
|
||||
else
|
||||
echo -e "query = SELECT quota*1048576 FROM emailusers WHERE email='%s'" >> "$mailLimitFile"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue