From 615a845d6ca11dd817fa6ef9811701a1d81d3e7d Mon Sep 17 00:00:00 2001 From: Erik Wramner Date: Tue, 13 Aug 2019 07:26:31 +0200 Subject: [PATCH] Fixed bug when dh.pem/dhparam.pem exists with ONE_DIR --- target/start-mailserver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 04d4adbd..0d99e71b 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -1261,7 +1261,7 @@ function _setup_postfix_dhparam() { fi # Copy from the state directory to the working location - rm /etc/postfix/dhparams.pem && cp $DHPARAMS_FILE /etc/postfix/dhparams.pem + rm -f /etc/postfix/dhparams.pem && cp $DHPARAMS_FILE /etc/postfix/dhparams.pem else if [ ! -f /etc/postfix/dhparams.pem ]; then if [ -f /etc/dovecot/dh.pem ]; then @@ -1293,7 +1293,7 @@ function _setup_dovecot_dhparam() { fi # Copy from the state directory to the working location - rm /etc/dovecot/dh.pem && cp $DHPARAMS_FILE /etc/dovecot/dh.pem + rm -f /etc/dovecot/dh.pem && cp $DHPARAMS_FILE /etc/dovecot/dh.pem else if [ ! -f /etc/dovecot/dh.pem ]; then if [ -f /etc/postfix/dhparams.pem ]; then