-execute "/opt/otrs/bin/otrs.RebuildConfig.pl" do
- action :run
- command "/opt/otrs/bin/otrs.RebuildConfig.pl"
- user "root"
- group "root"
- not_if { File.exist?("/opt/otrs/Kernel/Config/Files/ZZZAAuto.pm") }
-end
-
-if node[:postgresql][:clusters][database_cluster]
- postgresql_user database_user do
- cluster database_cluster
- password database_password
- end
-
- postgresql_database database_name do
- cluster database_cluster
- owner database_user
- end
-end
-
-execute "/opt/otrs/bin/Cron.sh" do
- action :nothing
- command "/opt/otrs/bin/Cron.sh restart"