refactor: move domainname default to entrypoint
This commit is contained in:
parent
702d352988
commit
f164b317dc
@ -24,7 +24,7 @@ RUN apk --no-cache \
|
||||
# set environment variables
|
||||
ENV TZ=Etc/UTC
|
||||
ENV LOCAL_HOSTNAME=${HOSTNAME}
|
||||
ENV LOCAL_DOMAINNAME=${HOSTNAME#*.}
|
||||
ENV LOCAL_DOMAINNAME=""
|
||||
ENV LOCAL_ENCRYPTION=false
|
||||
ENV SMARTHOST=""
|
||||
ENV SMARTHOST_PORT=587
|
||||
|
@ -24,7 +24,7 @@ fi
|
||||
# set failsafes
|
||||
[ -z "$SMARTHOST_PORT" ] && SMARTHOST_PORT=587
|
||||
[ -z "$LOCAL_HOSTNAME" ] && LOCAL_HOSTNAME="smarthost"
|
||||
[ -z "$LOCAL_DOMAINNAME" ] && LOCAL_DOMAINNAME="smarthost"
|
||||
[ -z "$LOCAL_DOMAINNAME" ] && LOCAL_DOMAINNAME="${LOCAL_HOSTNAME#*.}"
|
||||
|
||||
printf "done\n"
|
||||
printf "updating configuration files... "
|
||||
|
Loading…
Reference in New Issue
Block a user