mirror of
https://github.com/YunoHost-Apps/redmine_ynh.git
synced 2024-09-03 20:16:16 +02:00
Fix
This commit is contained in:
parent
bbd2e56f6b
commit
12e24979dd
2 changed files with 3 additions and 7 deletions
|
@ -120,12 +120,10 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Adding a configuration file..."
|
ynh_script_progression --message="Adding a configuration file..."
|
||||||
|
|
||||||
ynh_add_config --template="../conf/database.example.yml" --destination="$final_path/config/database.yml"
|
ynh_add_config --template="../conf/database.example.yml" --destination="$final_path/config/database.yml"
|
||||||
|
|
||||||
chmod 400 "$final_path/config/database.yml"
|
chmod 400 "$final_path/config/database.yml"
|
||||||
chown $app:$app "$final_path/config/database.yml"
|
chown $app:$app "$final_path/config/database.yml"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/configuration.yml.example" --destination="$final_path/config/configuration.yml"
|
ynh_add_config --template="../conf/configuration.yml.example" --destination="$final_path/config/configuration.yml"
|
||||||
|
|
||||||
chmod 400 "$final_path/config/configuration.yml"
|
chmod 400 "$final_path/config/configuration.yml"
|
||||||
chown $app:$app "$final_path/config/configuration.yml"
|
chown $app:$app "$final_path/config/configuration.yml"
|
||||||
|
|
||||||
|
@ -138,15 +136,14 @@ pushd $final_path
|
||||||
ynh_use_ruby
|
ynh_use_ruby
|
||||||
ynh_gem update --system --no-document
|
ynh_gem update --system --no-document
|
||||||
ynh_gem install bundler passenger --no-document
|
ynh_gem install bundler passenger --no-document
|
||||||
bundle config set --local without 'development test'
|
bundle config set --local without 'development test rmagick'
|
||||||
bundle install
|
bundle install
|
||||||
bundle install --without development test rmagick
|
|
||||||
ynh_exec_warn_less bundle exec rake generate_secret_token RAILS_ENV=production
|
ynh_exec_warn_less bundle exec rake generate_secret_token RAILS_ENV=production
|
||||||
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
||||||
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
|
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
|
||||||
popd
|
popd
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
#ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
chmod 750 "$final_path/public"
|
chmod 750 "$final_path/public"
|
||||||
chmod -R o-rwx "$final_path/public"
|
chmod -R o-rwx "$final_path/public"
|
||||||
|
|
|
@ -135,9 +135,8 @@ pushd $final_path
|
||||||
ynh_use_ruby
|
ynh_use_ruby
|
||||||
ynh_gem update --system --no-document
|
ynh_gem update --system --no-document
|
||||||
ynh_gem install bundler passenger --no-document
|
ynh_gem install bundler passenger --no-document
|
||||||
bundle config set --local without 'development test'
|
bundle config set --local without 'development test rmagick'
|
||||||
bundle install
|
bundle install
|
||||||
bundle install --without development test rmagick
|
|
||||||
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue