Update docker-entrypoint.sh

set es url on any start to make it updatesave
This commit is contained in:
André Bauer 2017-05-12 13:21:53 +02:00 committed by GitHub
parent d5856c7ef5
commit d5e7c5a603

View File

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