From a6333e01651635ed5b75088002a0bc83fe74a43e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 9 May 2024 12:11:57 +0100 Subject: [PATCH] otrs: create runtime directory --- cookbooks/otrs/recipes/debian.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cookbooks/otrs/recipes/debian.rb b/cookbooks/otrs/recipes/debian.rb index 2d683b17e..6e82a1933 100644 --- a/cookbooks/otrs/recipes/debian.rb +++ b/cookbooks/otrs/recipes/debian.rb @@ -92,12 +92,15 @@ systemd_service "otrs" do description "OTRS Daemon" type "forking" user "otrs" - group "otrs" + group "www-data" exec_start_pre "-/usr/share/otrs/bin/otrs.Daemon.pl stop" # Stop if race with deb cron exec_start "/usr/share/otrs/bin/otrs.Daemon.pl start" private_tmp true protect_system "strict" protect_home true + runtime_directory "otrs" + runtime_directory_mode 0o770 + runtime_directory_preserve true read_write_paths ["/var/lib/otrs", "/run/otrs", "/var/log/exim4", "/var/spool/exim4"] end -- 2.39.5