end
remote_file "#{Chef::Config[:file_cache_path]}/otrs-#{version}.tar.bz2" do
- source "https://ftp.otrs.org/pub/otrs/otrs-#{version}.tar.bz2"
+ source "https://download.znuny.org/releases/otrs-#{version}.tar.bz2"
not_if { ::File.exist?("/opt/otrs-#{version}") }
end
file "/opt/otrs-#{version}/Kernel/Config.pm" do
owner user
group "www-data"
- mode 0o664
+ mode "664"
content config
end
file name do
owner "otrs"
group "www-data"
- mode 0o664
+ mode "664"
content IO.read(distname)
notifies :run, "execute[/opt/otrs/bin/Cron.sh]"
end
source "sudoers.erb"
owner "root"
group "root"
- mode 0o440
+ mode "440"
end
template "/etc/cron.daily/otrs-backup" do
source "backup.cron.erb"
owner "root"
group "root"
- mode 0o755
+ mode "755"
end