Skip to content

Commit eaaa590

Browse files
author
Kristan Kenney
committed
Fix detection of dovecot during upgrade
1 parent 7a31702 commit eaaa590

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

install/upgrade/versions/latest.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ sed -i "s|ssl_tlsv1=YES|ssl_tlsv1=NO|g" /etc/vsftpd.conf
3030

3131
# Enhance Dovecot security
3232
echo "(*) Hardening Dovecot SSL configuration..."
33-
mv /etc/dovecot/conf.d/10-ssl.conf $HESTIA_BACKUP/conf/
34-
cp -f $HESTIA_INSTALL_DIR/dovecot/conf.d/10-ssl.conf /etc/dovecot/conf.d/
35-
33+
if [ ! -z "$IMAP_SYSTEM" ]; then
34+
mv /etc/dovecot/conf.d/10-ssl.conf $HESTIA_BACKUP/conf/
35+
cp -f $HESTIA_INSTALL_DIR/dovecot/conf.d/10-ssl.conf /etc/dovecot/conf.d/
36+
fi
3637
# Update DNS resolvers in hestia-nginx's configuration
3738
echo "(*) Updating DNS resolvers for Hestia Internal Web Server..."
3839
dns_resolver=$(cat /etc/resolv.conf | grep -i '^nameserver' | cut -d ' ' -f2 | tr '\r\n' ' ' | xargs)

0 commit comments

Comments
 (0)