From 6ce260e0a67c094156bb48ea228d22e75854ab2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 23 Feb 2024 21:46:33 +0100 Subject: [PATCH] Ok, root everywhere --- scripts/_common.sh | 12 ++++++------ scripts/install | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4dac970..79218eb 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 } diff --git a/scripts/install b/scripts/install index d140dbe..9870d4c 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 991340d..11d963e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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