File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ sed -i "s|ssl_tlsv1=YES|ssl_tlsv1=NO|g" /etc/vsftpd.conf
3030
3131# Enhance Dovecot security
3232echo " (*) 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
3738echo " (*) Updating DNS resolvers for Hestia Internal Web Server..."
3839dns_resolver=$( cat /etc/resolv.conf | grep -i ' ^nameserver' | cut -d ' ' -f2 | tr ' \r\n' ' ' | xargs)
You can’t perform that action at this time.
0 commit comments