]> git.openstreetmap.org Git - chef.git/commitdiff
otrs: create runtime directory
authorGrant Slater <github@firefishy.com>
Thu, 9 May 2024 11:11:57 +0000 (12:11 +0100)
committerGrant Slater <github@firefishy.com>
Thu, 9 May 2024 11:14:49 +0000 (12:14 +0100)
cookbooks/otrs/recipes/debian.rb

index 2d683b17e6d6ea38c3466f2dd8cb588224cb3710..6e82a1933175a48b5cdc6d35836ddd5e1ec8a9af 100644 (file)
@@ -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