Skip to content

Commit d7bcd1e

Browse files
committed
Add check if dovecot is enabled
1 parent cbc2a50 commit d7bcd1e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

install/upgrade/versions/1.4.8.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ if [ "$matches" > 1 ]; then
1717
$HESTIA/bin/v-change-sys-config-value "ENFORCE_SUBDOMAIN_OWNERSHIP" "$ENFORCE_SUBDOMAIN_OWNERSHIP"
1818
fi
1919

20-
version=$(dovecot --version | cut -f -2 -d .);
21-
if [ "$version" = "2.3" ]; then
22-
echo "[ * ] Update dovecot config to sync with 2.3 settings"
23-
sed -i 's|ssl_dh_parameters_length = 4096|#ssl_dh_parameters_length = 4096|g' /etc/dovecot/conf.d/10-ssl.conf
24-
sed -i 's|#ssl_dh = </etc/ssl/dhparam.pem|ssl_dh = </etc/ssl/dhparam.pem|g' /etc/dovecot/conf.d/10-ssl.conf
25-
sed -i 's|ssl_protocols = !SSLv3 !TLSv1|ssl_min_protocol=TLSv1.1|g' /etc/dovecot/conf.d/10-ssl.conf
20+
if [ "$IMAP_SYSTEM" = "dovecot" ];
21+
version=$(dovecot --version | cut -f -2 -d .);
22+
if [ "$version" = "2.3" ]; then
23+
echo "[ * ] Update dovecot config to sync with 2.3 settings"
24+
sed -i 's|ssl_dh_parameters_length = 4096|#ssl_dh_parameters_length = 4096|g' /etc/dovecot/conf.d/10-ssl.conf
25+
sed -i 's|#ssl_dh = </etc/ssl/dhparam.pem|ssl_dh = </etc/ssl/dhparam.pem|g' /etc/dovecot/conf.d/10-ssl.conf
26+
sed -i 's|ssl_protocols = !SSLv3 !TLSv1|ssl_min_protocol=TLSv1.1|g' /etc/dovecot/conf.d/10-ssl.conf
27+
fi
2628
fi

0 commit comments

Comments
 (0)