Merge pull request #122 from aforty/master
Fixed var name $SASL_PASSWD to $SASL_PASSWORD
This commit is contained in:
commit
996af0e15f
2
Makefile
2
Makefile
|
@ -19,7 +19,7 @@ run:
|
|||
-e SA_TAG=1.0 \
|
||||
-e SA_TAG2=2.0 \
|
||||
-e SA_KILL=3.0 \
|
||||
-e SASL_PASSWD=testing \
|
||||
-e SASL_PASSWORD=testing \
|
||||
-h mail.my-domain.com -t $(NAME)
|
||||
sleep 15
|
||||
docker run -d --name mail_pop3 \
|
||||
|
|
|
@ -211,15 +211,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"
|
||||
|
|
Loading…
Reference in New Issue