Skip to content

Commit 2b50b00

Browse files
author
Kristan Kenney
committed
Enable IMAP quota display for upgrade installs
1 parent 8687b1b commit 2b50b00

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

install/upgrade/versions/latest.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,17 @@ for user in $($HESTIA/bin/v-list-users plain | cut -f1); do
172172
done
173173

174174
chown root:root /var/log/$WEB_SYSTEM/domains/$WEBMAIL_ALIAS* > /dev/null 2>&1
175+
176+
# Enable IMAP/POP3 quota information
177+
if [ -z "$IMAP_SYSTEM" ]; then
178+
echo "(*) Enabling IMAP quota information reporting ..."
179+
if [ -e /etc/dovecot/conf.d/20-pop3.conf ]; then
180+
cp -f $HESTIA/install/deb/dovecot/conf.d/20-pop3.conf /etc/dovecot/conf.d/20-pop3.conf
181+
fi
182+
if [ -e /etc/dovecot/conf.d/20-imap.conf ]; then
183+
cp -f $HESTIA/install/deb/dovecot/conf.d/20-imap.conf /etc/dovecot/conf.d/20-imap.conf
184+
fi
185+
if [ -e /etc/dovecot/conf.d/90-quota.conf ]; then
186+
cp -f $HESTIA/install/deb/dovecot/conf.d/90-quota.conf /etc/dovecot/conf.d/90-quota.conf
187+
fi
188+
fi

0 commit comments

Comments
 (0)