don't update permissions on non-existent file (#956)

This commit is contained in:
Paul Adams 2018-04-23 19:42:47 +01:00 committed by Johan Smits
parent ea848eb86f
commit 283ac70bb9
1 changed files with 4 additions and 2 deletions

View File

@ -1073,8 +1073,10 @@ function _setup_postfix_relay_hosts() {
fi
fi
chown root:root /etc/postfix/sasl_passwd
chmod 0600 /etc/postfix/sasl_passwd
if [ -f /etc/postfix/sasl_passwd ]; then
chown root:root /etc/postfix/sasl_passwd
chmod 0600 /etc/postfix/sasl_passwd
fi
# end /etc/postfix/sasl_passwd
# setup /etc/postfix/relayhost_map