fix(postfix): Set correct default value for SMTP_PORT
This commit is contained in:
parent
7099763cec
commit
0e9c2d2b23
2
run.sh
2
run.sh
@ -18,7 +18,7 @@ function add_config_value() {
|
|||||||
[ -z "${SMTP_PASSWORD}" ] && echo "SMTP_PASSWORD is not set" && exit 1
|
[ -z "${SMTP_PASSWORD}" ] && echo "SMTP_PASSWORD is not set" && exit 1
|
||||||
[ -z "${SERVER_HOSTNAME}" ] && echo "SERVER_HOSTNAME is not set" && exit 1
|
[ -z "${SERVER_HOSTNAME}" ] && echo "SERVER_HOSTNAME is not set" && exit 1
|
||||||
|
|
||||||
SMTP_PORT="${SMTP_PORT-587}"
|
SMTP_PORT="${SMTP_PORT:-587}"
|
||||||
|
|
||||||
#Get the domain from the server host name
|
#Get the domain from the server host name
|
||||||
DOMAIN=`echo ${SERVER_HOSTNAME} |awk -F. '{$1="";OFS="." ; print $0}' | sed 's/^.//'`
|
DOMAIN=`echo ${SERVER_HOSTNAME} |awk -F. '{$1="";OFS="." ; print $0}' | sed 's/^.//'`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user