added locale download to zammad image
This commit is contained in:
parent
d4eefe47f4
commit
c7c8bd0803
@ -6,17 +6,17 @@ if [ "$1" = 'zammad' ]; then
|
|||||||
rake db:migrate &> /dev/null
|
rake db:migrate &> /dev/null
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "creating db, assets, searchindex..."
|
echo "creating db & searchindex..."
|
||||||
rake db:create
|
bundle exec rake db:create
|
||||||
rake db:migrate
|
bundle exec rake db:migrate
|
||||||
rake db:seed
|
bundle exec rake db:seed
|
||||||
rails r "Setting.set('es_url', 'http://elasticsearch:9200')"
|
bundle exec rails r "Setting.set('es_url', 'http://elasticsearch:9200')"
|
||||||
rake searchindex:rebuild
|
bundle exec rake searchindex:rebuild
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# delete logs & pids
|
# delete logs & pids
|
||||||
rm ${ZAMMAD_DIR}/log/*
|
rm ${ZAMMAD_DIR}/log/*.log
|
||||||
rm ${ZAMMAD_DIR}/tmp/pids/*
|
rm ${ZAMMAD_DIR}/tmp/pids/*.pid
|
||||||
|
|
||||||
# run zammad
|
# run zammad
|
||||||
echo "starting zammad..."
|
echo "starting zammad..."
|
||||||
|
@ -9,6 +9,7 @@ cp -R /tmp/zammad/.[!.]* ${ZAMMAD_DIR}
|
|||||||
cd ${ZAMMAD_DIR}
|
cd ${ZAMMAD_DIR}
|
||||||
rm -rf /tmp/zammad
|
rm -rf /tmp/zammad
|
||||||
bundle install --without test development mysql
|
bundle install --without test development mysql
|
||||||
|
contrib/packager.io/fetch_locales.rb
|
||||||
sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml
|
sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml
|
||||||
bundle exec rake assets:precompile
|
bundle exec rake assets:precompile
|
||||||
sed -e 's#.*adapter: postgresql# adapter: postgresql#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml
|
sed -e 's#.*adapter: postgresql# adapter: postgresql#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user