[DOCKER][MAIL] Fixed hash command
Also added permissions to start.sh
This commit is contained in:
parent
f3c3d80892
commit
f319ccea78
@ -41,7 +41,8 @@ RUN \
|
||||
chmod +x "/etc/service/postfix/run" \
|
||||
&& chmod +x "/etc/service/dovecot/run" \
|
||||
&& chmod +x "/etc/service/opendkim/run" \
|
||||
&& chmod +x "/etc/service/rsyslog/run"
|
||||
&& chmod +x "/etc/service/rsyslog/run" \
|
||||
&& chmod +x "/usr/bin/start.sh"
|
||||
|
||||
# Prepare user
|
||||
RUN \
|
||||
|
@ -12,7 +12,7 @@ else
|
||||
domain="${MAIL_SUBDOMAIN}.${MAIL_DOMAIN_ROOT}"
|
||||
fi
|
||||
|
||||
PASSHASH=$(mkpasswd -m sha-512 -S "" -R 5000 ${MAIL_PASSWORD})
|
||||
PASSHASH="{SHA512-CRYPT}$(mkpasswd -m sha-512 -R 5000 ${MAIL_PASSWORD})"
|
||||
|
||||
cat > mail.env <<EOF
|
||||
#!/bin/sh
|
||||
|
Loading…
Reference in New Issue
Block a user