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:
parent
f38f407d8d
commit
6ce260e0a6
3 changed files with 9 additions and 9 deletions
|
@ -12,12 +12,12 @@ ruby_version=3.1
|
||||||
|
|
||||||
_redmine_ruby_install() {
|
_redmine_ruby_install() {
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
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
|
||||||
ynh_exec_as "$app" "$ynh_ruby_load_path" bundle config set --local without 'development test rmagick'
|
bundle config set --local without 'development test rmagick'
|
||||||
ynh_exec_as "$app" "$ynh_ruby_load_path" bundle add 'webrick' --version '~> 1.7'
|
bundle add 'webrick' --version '~> 1.7'
|
||||||
ynh_exec_as "$app" "$ynh_ruby_load_path" bundle install
|
bundle install
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,8 +56,8 @@ ynh_script_progression --message="Building app..." --weight=1
|
||||||
_redmine_ruby_install
|
_redmine_ruby_install
|
||||||
|
|
||||||
pushd "$install_dir"
|
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_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 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
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ ynh_script_progression --message="Building app..." --weight=1
|
||||||
|
|
||||||
_redmine_ruby_install
|
_redmine_ruby_install
|
||||||
pushd "$install_dir"
|
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
|
popd
|
||||||
|
|
||||||
# Setting up LDAP authentification
|
# Setting up LDAP authentification
|
||||||
|
|
Loading…
Add table
Reference in a new issue