Follow-up - 28d1594956 - Fixes #3580 - Add description to package manager GUI.

This commit is contained in:
Martin Gruner 2021-07-20 13:11:38 +02:00
parent 28d1594956
commit fa7c4210bb

View file

@ -6,7 +6,7 @@ class PackagesController < ApplicationController
# GET /api/v1/packages # GET /api/v1/packages
def index def index
packages = Package.all.order('name') packages = Package.all.order('name')
commands = ['rails zammad:db:migrate', 'rails assets:precompile'] commands = ['rails zammad:package:migrate', 'rails assets:precompile']
if File.exist?('/usr/bin/zammad') if File.exist?('/usr/bin/zammad')
commands.map! { |s| "zammad run #{s}" } commands.map! { |s| "zammad run #{s}" }
end end