1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-29 04:17:07 +00:00

Add the --fail flag to curl when downloading the postgrey whitelist and redirect stdout and stderr to null

This commit is contained in:
Michael Kroes 2019-07-16 13:48:41 +02:00
parent 5362155046
commit f0c8ca3b00

View File

@ -215,7 +215,7 @@ tools/editconf.py /etc/default/postgrey \
cat > /etc/cron.monthly/mailinabox-postgrey-whitelist << EOF;
#!/bin/bash
# Mail-in-a-Box
curl https://postgrey.schweikert.ch/pub/postgrey_whitelist_clients --output /etc/postgrey/whitelist_clients -sS
curl https://postgrey.schweikert.ch/pub/postgrey_whitelist_clients --output /etc/postgrey/whitelist_clients -sS --fail > /dev/null 2>&1
EOF
chmod +x /etc/cron.monthly/mailinabox-postgrey-whitelist
/etc/cron.monthly/mailinabox-postgrey-whitelist