sdfsdf
This commit is contained in:
parent
d516979b12
commit
56c83ec182
|
|
@ -68,13 +68,9 @@ def sync():
|
||||||
# Compile
|
# Compile
|
||||||
os.system(f'sievec {sieve_path}')
|
os.system(f'sievec {sieve_path}')
|
||||||
|
|
||||||
# Activate via symlink
|
# Set ownership to mail user
|
||||||
sieve_dir = mailbox_dir / 'sieve'
|
os.system(f'chown docker:docker {sieve_path}')
|
||||||
sieve_dir.mkdir(exist_ok=True)
|
os.system(f'chown docker:docker {sieve_path}.svbin')
|
||||||
active_link = sieve_dir / '.dovecot.sieve'
|
|
||||||
if active_link.exists():
|
|
||||||
active_link.unlink()
|
|
||||||
active_link.symlink_to('../.dovecot.sieve')
|
|
||||||
|
|
||||||
print(f'✓ {email}')
|
print(f'✓ {email}')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue