From 06527b4d49be97366926173bfd90a4b566a773a7 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Fri, 15 Sep 2023 01:12:08 +0200 Subject: [PATCH] Update postinst --- src/deb/vesta/postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 3f237f10a..e53fee724 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -26,8 +26,8 @@ fi # chmod a=rw /usr/local/vesta/data/upgrades/show_changelog # Fixing 'dh key too small' in dovecot -if [ -f "/var/log/dovecot.log" ] && [ -f "/etc/dovecot/conf.d/10-ssl.conf" ] && [ -f "/usr/share/dovecot/dh.pem" ]; then - if grep -q 'dh key too small' /var/log/dovecot.log; then +if [ -f "/var/log/dovecot.log.1" ] && [ -f "/etc/dovecot/conf.d/10-ssl.conf" ] && [ -f "/usr/share/dovecot/dh.pem" ]; then + if grep -q 'dh key too small' /var/log/dovecot.log.1; then if ! grep -q 'dh.pem' /etc/dovecot/conf.d/10-ssl.conf; then echo "== Fixing 'dh key too small' in dovecot" echo "ssl_dh=> /etc/dovecot/conf.d/10-ssl.conf