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:
parent
596475fe4b
commit
40a1084f4a
1 changed files with 5 additions and 4 deletions
|
@ -75,10 +75,11 @@ ynh_script_progression --message="Creating a MySQL database..." --time --weight=
|
||||||
|
|
||||||
ynh_psql_test_if_first_run
|
ynh_psql_test_if_first_run
|
||||||
|
|
||||||
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
export db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||||
db_user=$db_name
|
export db_user=$db_name
|
||||||
ynh_app_setting_set --app=$app --key=db_name --value=$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
|
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name
|
||||||
|
export db_pwd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -127,8 +128,8 @@ virtualenv "$final_path/venv"
|
||||||
|
|
||||||
export prefix="${path_url#"/"}/"
|
export prefix="${path_url#"/"}/"
|
||||||
prefix=${prefix%"/"}
|
prefix=${prefix%"/"}
|
||||||
ynh_render_template ../conf/local.py.j2 "$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/app/settings_local.py"
|
ynh_store_file_checksum --file="$final_path/coin/settings_local.py"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SERVE STATIC FILES IN PRODUCTION MODE
|
# SERVE STATIC FILES IN PRODUCTION MODE
|
||||||
|
|
Loading…
Reference in a new issue