1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/redmine_ynh.git synced 2024-09-03 20:16:16 +02:00

Ok, root everywhere

This commit is contained in:
Salamandar 2024-02-23 21:46:33 +01:00
parent f38f407d8d
commit 6ce260e0a6
3 changed files with 9 additions and 9 deletions

View file

@ -12,12 +12,12 @@ ruby_version=3.1
_redmine_ruby_install() {
pushd "$install_dir"
ynh_use_ruby
"$ynh_gem" update --system --no-document
"$ynh_gem" install bundler passenger --no-document
ynh_exec_as "$app" "$ynh_ruby_load_path" bundle config set --local without 'development test rmagick'
ynh_exec_as "$app" "$ynh_ruby_load_path" bundle add 'webrick' --version '~> 1.7'
ynh_exec_as "$app" "$ynh_ruby_load_path" bundle install
ynh_use_ruby
ynh_gem update --system --no-document
ynh_gem install bundler passenger --no-document
bundle config set --local without 'development test rmagick'
bundle add 'webrick' --version '~> 1.7'
bundle install
popd
}

View file

@ -56,8 +56,8 @@ ynh_script_progression --message="Building app..." --weight=1
_redmine_ruby_install
pushd "$install_dir"
ynh_exec_as "$app" "$ynh_ruby_load_path" ynh_exec_warn_less bundle exec rake generate_secret_token RAILS_ENV=production
ynh_exec_as "$app" "$ynh_ruby_load_path" ynh_exec_warn_less bundle exec rake db:migrate 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 redmine:load_default_data RAILS_ENV=production
popd

View file

@ -49,7 +49,7 @@ ynh_script_progression --message="Building app..." --weight=1
_redmine_ruby_install
pushd "$install_dir"
ynh_exec_as "$app" "$ynh_ruby_load_path" 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
# Setting up LDAP authentification