refactor: move domainname default to entrypoint

This commit is contained in:
Asif Bacchus 2021-05-13 13:29:21 -06:00
parent 702d352988
commit f164b317dc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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... "