Fixed bug when dh.pem/dhparam.pem exists with ONE_DIR

This commit is contained in:
Erik Wramner 2019-08-13 07:26:31 +02:00
parent 5ebb8614a2
commit 615a845d6c
1 changed files with 2 additions and 2 deletions

View File

@ -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