From e3b875aa6b46d674731c6677d32908c7a3c51410 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 17 Nov 2022 18:09:00 +0100 Subject: [PATCH] Well, -i stands for --insecure --- core/rspamd/start.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/rspamd/start.py b/core/rspamd/start.py index 537d996d..0f351057 100755 --- a/core/rspamd/start.py +++ b/core/rspamd/start.py @@ -33,4 +33,6 @@ while True: log.warning("Admin is not up just yet, retrying in 1 second") # Run rspamd -os.execv("/usr/sbin/rspamd", ["rspamd", "-i", "-f"]) +os.system("mkdir -m 755 -p /run/rspamd") +os.system("chown rspamd:rspamd /run/rspamd") +os.execv("/usr/sbin/rspamd", ["rspamd", "-f", "-u", "rspamd", "-g", "rspamd"])