Skip to content

Commit 5ae3920

Browse files
rluemonotek
authored andcommitted
Fix nulldb errors arising in Rails 5.2 (#108)
1 parent 6c82bf2 commit 5ae3920

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

containers/zammad/setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ if [ "$1" = 'install' ]; then
3333
bundle install --without test development mysql
3434
contrib/packager.io/fetch_locales.rb
3535
sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: zammad-postgresql\n#g' < contrib/packager.io/database.yml.pkgr > config/database.yml
36+
sed -i "/require 'rails\/all'/a require\ 'nulldb'" config/application.rb
3637
sed -i '/# Use a different logger for distributed setups./a \ \ config.logger = Logger.new(STDOUT)' config/environments/production.rb
3738
sed -i 's/.*scheduler_\(err\|out\).log.*//g' script/scheduler.rb
39+
touch db/schema.rb
3840
bundle exec rake assets:precompile
3941
rm -r tmp/cache
4042
chown -R "${ZAMMAD_USER}":"${ZAMMAD_USER}" "${ZAMMAD_TMP_DIR}"

0 commit comments

Comments
 (0)