Don't recursivly chown on mailboxes.

This fixes #776.
Recursion is not needed, as the permissions will only need to be set on the first invocation.
master
Tim Möhlmann 5 years ago
parent 3b5f3af207
commit 0ac3cf9617
No known key found for this signature in database
GPG Key ID: 8677988D8072E8DE

@ -109,6 +109,7 @@ v1.6.0 - unreleased
- Bug: Error when trying to log in with an account without domain ([#585](https://github.com/Mailu/Mailu/issues/585))
- Bug: Fix rainloop permissions ([#637](https://github.com/Mailu/Mailu/issues/637))
- Bug: Fix broken webmail and logo url in admin ([#792](https://github.com/Mailu/Mailu/issues/792))
- Bug: Don't recursivly chown on mailboxes ([#776](https://github.com/Mailu/Mailu/issues/776))
v1.5.1 - 2017-11-21
-------------------

@ -10,7 +10,8 @@ RUN pip3 install tenacity
# Image specific layers under this line
RUN apk add --no-cache \
dovecot dovecot-pigeonhole-plugin dovecot-fts-lucene rspamd-client bash \
&& pip3 install podop
&& pip3 install podop \
&& mkdir /var/lib/dovecot
COPY conf /conf
COPY start.py /start.py

@ -33,5 +33,6 @@ for dovecot_file in glob.glob("/conf/*.conf"):
# Run Podop, then postfix
multiprocessing.Process(target=start_podop).start()
os.system("chown -R mail:mail /mail /var/lib/dovecot /conf")
os.system("chown mail:mail /mail")
os.system("chown -R mail:mail /var/lib/dovecot /conf")
os.execv("/usr/sbin/dovecot", ["dovecot", "-c", "/etc/dovecot/dovecot.conf", "-F"])

Loading…
Cancel
Save