Fix /var/mail right at container initialization rather than startup
This commit is contained in:
parent
de70a155f2
commit
ffecc92e6a
|
@ -120,7 +120,10 @@ RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \
|
||||||
# Get LetsEncrypt signed certificate
|
# Get LetsEncrypt signed certificate
|
||||||
RUN curl -s https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem > /etc/ssl/certs/lets-encrypt-x3-cross-signed.pem
|
RUN curl -s https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem > /etc/ssl/certs/lets-encrypt-x3-cross-signed.pem
|
||||||
|
|
||||||
|
RUN chown 5000:5000 /var/mail
|
||||||
|
|
||||||
COPY ./target/bin /usr/local/bin
|
COPY ./target/bin /usr/local/bin
|
||||||
|
|
||||||
# Start-mailserver script
|
# Start-mailserver script
|
||||||
COPY ./target/start-mailserver.sh /usr/local/bin/
|
COPY ./target/start-mailserver.sh /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/*
|
RUN chmod +x /usr/local/bin/*
|
||||||
|
|
|
@ -95,7 +95,7 @@ function register_functions() {
|
||||||
|
|
||||||
################### >> fix funcs
|
################### >> fix funcs
|
||||||
|
|
||||||
_register_fix_function "_fix_var_mail_permissions"
|
# _register_fix_function "_fix_var_mail_permissions"
|
||||||
|
|
||||||
################### << fix funcs
|
################### << fix funcs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue