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

Fix installation

This commit is contained in:
Alexandre Aubin 2019-08-24 18:58:02 +02:00
parent 596475fe4b
commit 40a1084f4a

View file

@ -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