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

replace $final_path (deprecated) by $install_dir

This commit is contained in:
OniriCorpe 2024-02-24 22:05:53 +01:00 committed by GitHub
parent 5aff6637e6
commit 3b2e8e3ee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ ynh_add_config --template="configuration.yml.example" --destination="$install_di
chmod 400 "$install_dir/config/configuration.yml"
chown "$app:$app" "$install_dir/config/configuration.yml"
ynh_add_config --template="../conf/db-ldap.sql" --destination="$final_path/config/db-ldap.sql"
ynh_add_config --template="../conf/db-ldap.sql" --destination="$install_dir/config/db-ldap.sql"
#=================================================
# BUILD APP
@ -58,8 +58,8 @@ pushd "$install_dir"
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
#Setting up LDAP authentification
ynh_psql_connect_as $db_user $db_pwd $db_name < $final_path/config/db-ldap.sql
rm -f $final_path/config/db-ldap.sql
ynh_psql_connect_as $db_user $db_pwd $db_name < $install_dir/config/db-ldap.sql
rm -f $install_dir/config/db-ldap.sql
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
popd