Use NextJS middleware for proxying
This commit is contained in:
parent
4e4603bd71
commit
df9b8abf15
13 changed files with 154 additions and 94 deletions
|
|
@ -3,8 +3,18 @@
|
|||
packages = Dir.glob('/opt/zammad/contrib/link/addons/*')
|
||||
|
||||
packages.each do |package|
|
||||
puts "Attempting to uninstall #{package} package..."
|
||||
existing_package = Package.find_by(name: package.name)
|
||||
if existing_package.blank?
|
||||
puts "Package #{name} is not installed."
|
||||
else
|
||||
puts "Uninstalling #{package.name} #{package.version}..."
|
||||
Package.uninstall(name: package.name, version: package.version)
|
||||
puts 'Uninstalled'
|
||||
end
|
||||
puts "Installing #{package} package..."
|
||||
Package.install(file: package)
|
||||
puts 'Installed'
|
||||
rescue StandardError => e
|
||||
puts e.message
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue