From: Grant Slater Date: Thu, 9 May 2024 11:11:57 +0000 (+0100) Subject: otrs: create runtime directory X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/a6333e01651635ed5b75088002a0bc83fe74a43e otrs: create runtime directory --- 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