Skip to content

Commit

Permalink
Fix issue with using docker link: preference the docker link var over…
Browse files Browse the repository at this point in the history
… SMTP_PORT var
  • Loading branch information
macropin committed Aug 2, 2017
1 parent 4180e6d commit ba6e553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export MPM_MAXWORKERS=${MPM_MAXWORKERS:-150}
export MPM_MAXCONNECTIONS=${MPM_CONNECTIONS:-0}

# SMTP
export SMTP_HOST=${SMTP_HOST-${SMTP_PORT_25_TCP_ADDR:-'localhost'}}
export SMTP_PORT=${SMTP_PORT-${SMTP_PORT_25_TCP_PORT:-'25'}}
export SMTP_HOST=${SMTP_PORT_25_TCP_ADDR-${SMTP_HOST:-'localhost'}}
export SMTP_PORT=${SMTP_PORT_25_TCP_PORT-${SMTP_PORT:-'25'}}
cat << EOF > /etc/msmtprc
account default
auto_from on
Expand Down

0 comments on commit ba6e553

Please sign in to comment.