From 40a1084f4acd8f8ee346f3c188d6eb9018eaf244 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 24 Aug 2019 18:58:02 +0200 Subject: [PATCH] Fix installation --- scripts/install | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 365ec3c..23f9e5d 100644 --- a/scripts/install +++ b/scripts/install @@ -75,10 +75,11 @@ ynh_script_progression --message="Creating a MySQL database..." --time --weight= ynh_psql_test_if_first_run -db_name=$(ynh_sanitize_dbid --db_name=$app) -db_user=$db_name +export db_name=$(ynh_sanitize_dbid --db_name=$app) +export db_user=$db_name ynh_app_setting_set --app=$app --key=db_name --value=$db_name ynh_psql_setup_db --db_user=$db_user --db_name=$db_name +export db_pwd #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -127,8 +128,8 @@ virtualenv "$final_path/venv" export prefix="${path_url#"/"}/" prefix=${prefix%"/"} -ynh_render_template ../conf/local.py.j2 "$final_path/app/settings_local.py" -ynh_store_file_checksum --file="$final_path/app/settings_local.py" +ynh_render_template ../conf/local.py.j2 "$final_path/coin/settings_local.py" +ynh_store_file_checksum --file="$final_path/coin/settings_local.py" #================================================= # SERVE STATIC FILES IN PRODUCTION MODE