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.
This commit is contained in:
Tim Möhlmann
2019-01-08 05:00:15 +02:00
parent 3b5f3af207
commit 0ac3cf9617
3 changed files with 5 additions and 2 deletions

View File

@@ -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"])