Only try to copy whitelist local if it exists in the source directory

This commit is contained in:
Michael Als 2017-05-09 07:43:26 +02:00
parent feff849d62
commit 2c71e9b7c6
1 changed files with 3 additions and 1 deletions

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
}