From c4f457e7f965c8a8e4a28bc938e147ef2c8ef558 Mon Sep 17 00:00:00 2001 From: Dimitri Huisman Date: Mon, 9 Sep 2024 13:01:12 +0000 Subject: [PATCH] Fix 3420 - fixed syntax errors in certwatcher.py --- core/nginx/certwatcher.py | 4 ++-- towncrier/newsfragments/3420.bugfix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 towncrier/newsfragments/3420.bugfix diff --git a/core/nginx/certwatcher.py b/core/nginx/certwatcher.py index 0e83666e..48d128ed 100755 --- a/core/nginx/certwatcher.py +++ b/core/nginx/certwatcher.py @@ -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(): diff --git a/towncrier/newsfragments/3420.bugfix b/towncrier/newsfragments/3420.bugfix new file mode 100644 index 00000000..dbc78435 --- /dev/null +++ b/towncrier/newsfragments/3420.bugfix @@ -0,0 +1 @@ +The reload functionality of nginx/dovecot upon change of the certificates failed with an error. \ No newline at end of file