Fixes Postgrey whitelist_local copy issue

This commit is contained in:
Michael Als 2017-05-10 09:42:44 +02:00 committed by Thomas VIAL
parent feff849d62
commit 070f0da014

View file

@ -590,7 +590,9 @@ function _setup_postgrey() {
if [ $TEXT_FOUND -eq 0 ]; then
printf "POSTGREY_TEXT=\"$POSTGREY_TEXT\"\n\n" >> /etc/default/postgrey
fi
cp -f /tmp/docker-mailserver/whitelist_clients.local /etc/postgrey/whitelist_clients.local
if [ -f /tmp/docker-mailserver/whitelist_clients.local ]; then
cp -f /tmp/docker-mailserver/whitelist_clients.local /etc/postgrey/whitelist_clients.local
fi
}