Fixed #3933 - Startup of Zammad does not synchronize the custom branding logo.
This commit is contained in:
parent
273b46b810
commit
a1af43d3e7
1 changed files with 8 additions and 5 deletions
|
@ -2,11 +2,14 @@
|
|||
|
||||
Rails.application.reloader.to_prepare do
|
||||
|
||||
next if !ActiveRecord::Base.connected?
|
||||
|
||||
begin
|
||||
# sync logo to fs / only if settings already exists
|
||||
next if ActiveRecord::Base.connection.tables.exclude?('settings')
|
||||
|
||||
next if Setting.column_names.exclude?('state_current')
|
||||
|
||||
StaticAssets.sync
|
||||
rescue ::ActiveRecord::NoDatabaseError
|
||||
Rails.logger.debug("Database doesn't exist. Skipping StaticAssets.sync")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue