1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00
3422: Fix 3420 - fixed syntax errors in certwatcher.py (backport #3421) r=mergify[bot] a=mergify[bot]

## What type of PR?

bug-fix

## What does this PR do?
Fixes syntax errors in certwatcher.py that resulted in dovecot not being restarted upon detection of changed certificate files.

### Related issue(s)
- Auto close an issue like: closes #3420 

## 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.

- [x] 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.
<hr>This is an automatic backport of pull request #3421 done by [Mergify](https://mergify.com).

Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
This commit is contained in:
bors-mailu[bot]
2024-09-09 14:27:38 +00:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -27,9 +27,9 @@ class ChangeHandler(FileSystemEventHandler):
if exists("/var/run/nginx.pid"):
print("Reloading a running nginx")
system("nginx -s reload")
if os.path.exists("/run/dovecot/master.pid"):
if exists("/run/dovecot/master.pid"):
print("Reloading a running dovecot")
os.system("doveadm reload")
system("doveadm reload")
@staticmethod
def reexec_config():

View File

@@ -0,0 +1 @@
The reload functionality of nginx/dovecot upon change of the certificates failed with an error.