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:
parent
5048f8b509
commit
d8404a3767
|
@ -209,15 +209,15 @@ else
|
||||||
echo "'/tmp/postfix/main.cf' not provided. No extra postfix settings loaded."
|
echo "'/tmp/postfix/main.cf' not provided. No extra postfix settings loaded."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$SASL_PASSWD" ]; then
|
if [ ! -z "$SASL_PASSWORD" ]; then
|
||||||
echo "$SASL_PASSWD" > /etc/postfix/sasl_passwd
|
echo "$SASL_PASSWORD" > /etc/postfix/sasl_passwd
|
||||||
postmap hash:/etc/postfix/sasl_passwd
|
postmap hash:/etc/postfix/sasl_passwd
|
||||||
rm /etc/postfix/sasl_passwd
|
rm /etc/postfix/sasl_passwd
|
||||||
chown root:root /etc/postfix/sasl_passwd.db
|
chown root:root /etc/postfix/sasl_passwd.db
|
||||||
chmod 0600 /etc/postfix/sasl_passwd.db
|
chmod 0600 /etc/postfix/sasl_passwd.db
|
||||||
echo "Loaded SASL_PASSWORD"
|
echo "Loaded SASL_PASSWORD"
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
echo "Fixing permissions"
|
echo "Fixing permissions"
|
||||||
|
|
Loading…
Reference in New Issue