Merge pull request #1 from aforty/patch-1
Changed $SASL_PASSWD to $SASL_PASSWORD
This commit is contained in:
commit
06fc49a538
|
@ -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