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:
parent
5aff6637e6
commit
3b2e8e3ee7
1 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ ynh_add_config --template="configuration.yml.example" --destination="$install_di
|
||||||
chmod 400 "$install_dir/config/configuration.yml"
|
chmod 400 "$install_dir/config/configuration.yml"
|
||||||
chown "$app:$app" "$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
|
# BUILD APP
|
||||||
|
@ -58,8 +58,8 @@ pushd "$install_dir"
|
||||||
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
||||||
|
|
||||||
#Setting up LDAP authentification
|
#Setting up LDAP authentification
|
||||||
ynh_psql_connect_as $db_user $db_pwd $db_name < $final_path/config/db-ldap.sql
|
ynh_psql_connect_as $db_user $db_pwd $db_name < $install_dir/config/db-ldap.sql
|
||||||
rm -f $final_path/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
|
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Reference in a new issue