diff --git a/containers/zammad-railsserver/docker-entrypoint.sh b/containers/zammad-railsserver/docker-entrypoint.sh index bb5f0ce..770a801 100644 --- a/containers/zammad-railsserver/docker-entrypoint.sh +++ b/containers/zammad-railsserver/docker-entrypoint.sh @@ -11,8 +11,8 @@ if [ "$1" = 'zammad-railsserver' ]; then echo "railsserver can access postgresql server now..." cd ${ZAMMAD_DIR} - bundle exec rake db:migrate &> /dev/null bundle exec rails r "Setting.set('es_url', 'http://zammad-elasticsearch:9200')" + bundle exec rake db:migrate &> /dev/null if [ $? != 0 ]; then echo "creating db & searchindex..."