mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
Fixed a bug where a variable was expanded in the cron script and removed the temporary file
This commit is contained in:
parent
33ba538fc1
commit
4aa2047a20
@ -225,9 +225,12 @@ if [ ! -f /etc/postgrey/whitelist_clients ] || find /etc/postgrey/whitelist_clie
|
||||
# curl manual states that --fail sometimes still produces output
|
||||
# this final check will at least check the output is not html
|
||||
# before moving it into place
|
||||
if [ $( file -b --mime-type /tmp/postgrey_whitelist_clients) == "text/plain" ]; then
|
||||
if [ \$( file -b --mime-type /tmp/postgrey_whitelist_clients) == "text/plain" ]; then
|
||||
mv /tmp/postgrey_whitelist_clients /etc/postgrey/whitelist_clients
|
||||
else
|
||||
rm /tmp/postgrey_whitelist_clients
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user