1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/redmine_ynh.git synced 2024-09-03 20:16:16 +02:00
This commit is contained in:
ericgaspar 2022-04-13 07:25:01 +02:00
parent 12e24979dd
commit af452dbf5b
4 changed files with 7 additions and 24 deletions

View file

@ -5,7 +5,7 @@
is_public=1
; Checks
pkg_linter=1
setup_sub_dir=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=1

View file

@ -66,7 +66,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
ynh_script_progression --message="Installing dependencies..."
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
ynh_install_ruby --ruby_version=$ruby_version
ynh_exec_warn_less ynh_install_ruby --ruby_version=$ruby_version
#=================================================
# CREATE DEDICATED USER
@ -143,7 +143,7 @@ pushd $final_path
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
popd
#ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
chmod 750 "$final_path/public"
chmod -R o-rwx "$final_path/public"

View file

@ -79,7 +79,7 @@ ynh_script_progression --message="Reinstalling dependencies..."
# Define and install dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
ynh_install_ruby --ruby_version=$ruby_version
ynh_exec_warn_less ynh_install_ruby --ruby_version=$ruby_version
#=================================================
# RESTORE THE POSTGRESQL DATABASE
@ -91,8 +91,6 @@ ynh_psql_test_if_first_run
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
#=================================================
# BUILD APP
#=================================================
@ -107,7 +105,7 @@ pushd $final_path
bundle install --without development test rmagick
popd
ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
chmod 750 "$final_path/public"
chmod -R o-rwx "$final_path/public"

View file

@ -109,22 +109,7 @@ ynh_add_nginx_config
ynh_script_progression --message="Upgrading dependencies..."
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
ynh_install_ruby --ruby_version=$ruby_version
#=================================================
# SPECIFIC UPGRADE
#=================================================
# ADD A CONFIGURATION
#=================================================
# ynh_script_progression --message="Adding a configuration file..."
# 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"
# 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"
ynh_exec_warn_less ynh_install_ruby --ruby_version=$ruby_version
#=================================================
# BUILD APP
@ -140,7 +125,7 @@ pushd $final_path
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
popd
#ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
chmod 750 "$final_path/public"
chmod -R o-rwx "$final_path/public"