From 4d0250cebfe9b44c330af82e0240c48a87e8ce4e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 12 Apr 2022 22:30:25 +0200 Subject: [PATCH] Fix --- scripts/install | 1 - scripts/restore | 1 - scripts/upgrade | 17 ++++++++--------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index c9aa78d..01dfec1 100644 --- a/scripts/install +++ b/scripts/install @@ -145,7 +145,6 @@ pushd $final_path ynh_gem install bundler passenger --no-document bundle config set --local without 'development test rmagick' 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 db:migrate RAILS_ENV=production #ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production diff --git a/scripts/restore b/scripts/restore index a4fb4e5..d324679 100644 --- a/scripts/restore +++ b/scripts/restore @@ -102,7 +102,6 @@ pushd $final_path ynh_gem install bundler passenger --no-document bundle config set --local without 'development test rmagick' bundle install - #bundle install --without development test rmagick popd ynh_install_app_dependencies $pkg_dependencies diff --git a/scripts/upgrade b/scripts/upgrade index aa6a0d2..22757ea 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,7 +86,7 @@ then ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/database.yml $final_path/config/configuration.yml $final_path/config/environment.rb" fi mkdir -p "$final_path/files" "$final_path/log" "$final_path/tmp" "$final_path/public/plugin_assets" @@ -117,17 +117,17 @@ ynh_install_ruby --ruby_version=$ruby_version #================================================= # ADD A CONFIGURATION #================================================= -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" -chown $app:$app "$final_path/config/database.yml" +# chmod 400 "$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" -chown $app:$app "$final_path/config/configuration.yml" +# chmod 400 "$final_path/config/configuration.yml" +# chown $app:$app "$final_path/config/configuration.yml" #================================================= # BUILD APP @@ -140,7 +140,6 @@ pushd $final_path ynh_gem install bundler passenger --no-document bundle config set --local without 'development test rmagick' bundle install - #bundle install --without development test rmagick ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production popd