From d5e7c5a603a6c176dc0d5e5597982790c33d1a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Fri, 12 May 2017 13:21:53 +0200 Subject: [PATCH] Update docker-entrypoint.sh set es url on any start to make it updatesave --- containers/zammad-railsserver/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..."