mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Merge #3181
3181: Ensure that nginx and dovecot are reloaded r=mergify[bot] a=nextgens ## What type of PR? bug-fix ## What does this PR do? Ensure that nginx and dovecot are reloaded. For some reason here the PID files have disappeared and the reload doesn't work. ### Related issue(s) ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [ ] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
commit
a7cf68163a
@ -53,9 +53,6 @@ if args["TLS"] and not all(os.path.exists(file_path) for file_path in args["TLS"
|
||||
conf.jinja("/conf/tls.conf", args, "/etc/nginx/tls.conf")
|
||||
conf.jinja("/conf/proxy.conf", args, "/etc/nginx/proxy.conf")
|
||||
conf.jinja("/conf/nginx.conf", args, "/etc/nginx/nginx.conf")
|
||||
if os.path.exists("/var/run/nginx.pid"):
|
||||
os.system("nginx -s reload")
|
||||
conf.jinja("/dovecot_conf/login.lua", args, "/etc/dovecot/login.lua")
|
||||
conf.jinja("/dovecot_conf/proxy.conf", args, "/etc/dovecot/proxy.conf")
|
||||
if os.path.exists("/run/dovecot/master.pid"):
|
||||
os.system("doveadm reload")
|
||||
os.system("killall -HUP nginx dovecot")
|
||||
|
1
towncrier/newsfragments/3179.bugfix
Normal file
1
towncrier/newsfragments/3179.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Ensure that nginx and dovecot are reloaded
|
Loading…
x
Reference in New Issue
Block a user