From a85b3b842096a7a10bb6f3a89daf238af1b852c6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 29 May 2018 22:54:07 +0100 Subject: [PATCH 1/1] Update OTRS to 4.0.29 --- cookbooks/otrs/attributes/default.rb | 2 +- cookbooks/otrs/recipes/default.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbooks/otrs/attributes/default.rb b/cookbooks/otrs/attributes/default.rb index bcf7398ca..188a94cea 100644 --- a/cookbooks/otrs/attributes/default.rb +++ b/cookbooks/otrs/attributes/default.rb @@ -1,4 +1,4 @@ -default[:otrs][:version] = "3.3.20" +default[:otrs][:version] = "4.0.29" default[:otrs][:user] = "otrs" default[:otrs][:group] = nil default[:otrs][:database_cluster] = "9.5/main" diff --git a/cookbooks/otrs/recipes/default.rb b/cookbooks/otrs/recipes/default.rb index 96258ae4b..ef4e9b388 100644 --- a/cookbooks/otrs/recipes/default.rb +++ b/cookbooks/otrs/recipes/default.rb @@ -36,6 +36,7 @@ package "libpdf-api2-perl" package "libsoap-lite-perl" package "libyaml-libyaml-perl" package "libcrypt-eksblowfish-perl" +package "libtemplate-perl" apache_module "headers" @@ -122,7 +123,7 @@ end execute "/opt/otrs/bin/otrs.SetPermissions.pl" do action :run - command "/opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=#{user} --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs-#{version}" + command "/opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=#{user} --web-group=www-data /opt/otrs-#{version}" user "root" group "root" only_if { File.stat("/opt/otrs/README.md").uid != Etc.getpwnam("otrs").uid } -- 2.43.2