Add Link Zammad setup file
This commit is contained in:
parent
0e0f081a79
commit
eb3469abf9
4 changed files with 21 additions and 2 deletions
16
docker/zammad/setup.rb
Normal file
16
docker/zammad/setup.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
base_path = '/opt/zammad/contrib/link/addons'
|
||||
|
||||
packages = Dir.glob("#{base_path}/*")
|
||||
|
||||
puts "Available packages: #{packages}"
|
||||
puts "Installed packages: #{Package.all}"
|
||||
|
||||
packages.each do |package|
|
||||
puts "Installing #{package} package..."
|
||||
Package.install(file: package, reinstall: true)
|
||||
rescue StandardError => e
|
||||
puts "Error #{e.message}"
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue