mirror of
https://github.com/tomav/docker-mailserver
synced 2025-09-01 23:05:26 +00:00
Merge pull request #1226 from erik-wramner/fix_dovecot_respawning
Fixed bug when dh.pem/dhparam.pem exists with ONE_DIR. The tests passed in my fork, so I'll merge this at once to get it out before more people run into problems.
This commit is contained in:
@@ -1261,7 +1261,7 @@ function _setup_postfix_dhparam() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy from the state directory to the working location
|
# 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
|
else
|
||||||
if [ ! -f /etc/postfix/dhparams.pem ]; then
|
if [ ! -f /etc/postfix/dhparams.pem ]; then
|
||||||
if [ -f /etc/dovecot/dh.pem ]; then
|
if [ -f /etc/dovecot/dh.pem ]; then
|
||||||
@@ -1293,7 +1293,7 @@ function _setup_dovecot_dhparam() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy from the state directory to the working location
|
# 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
|
else
|
||||||
if [ ! -f /etc/dovecot/dh.pem ]; then
|
if [ ! -f /etc/dovecot/dh.pem ]; then
|
||||||
if [ -f /etc/postfix/dhparams.pem ]; then
|
if [ -f /etc/postfix/dhparams.pem ]; then
|
||||||
|
Reference in New Issue
Block a user