Updated $SASL_PASSWD => $SASL_PASSWORD

The README lists the environmental variable as `SASL_PASSWORD` while the startup script was actually looking for `SASL_PASSWD`. The script now looks for `SASL_PASSWORD` which is consistent with documentation.

Also changed warning to info, as per discussion in #120
This commit is contained in:
Arno Fortelny 2016-04-07 15:04:49 -04:00
parent 5048f8b509
commit d8404a3767
1 changed files with 3 additions and 3 deletions

View File

@ -209,15 +209,15 @@ else
echo "'/tmp/postfix/main.cf' not provided. No extra postfix settings loaded."
fi
if [ ! -z "$SASL_PASSWD" ]; then
echo "$SASL_PASSWD" > /etc/postfix/sasl_passwd
if [ ! -z "$SASL_PASSWORD" ]; then
echo "$SASL_PASSWORD" > /etc/postfix/sasl_passwd
postmap hash:/etc/postfix/sasl_passwd
rm /etc/postfix/sasl_passwd
chown root:root /etc/postfix/sasl_passwd.db
chmod 0600 /etc/postfix/sasl_passwd.db
echo "Loaded SASL_PASSWORD"
else
echo "==> Warning: 'SASL_PASSWORD' is not provided. /etc/postfix/sasl_passwd not created."
echo "Info: SASL_PASSWORD is not provided. /etc/postfix/sasl_passwd not created."
fi
echo "Fixing permissions"