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

Update install

This commit is contained in:
yalh76 2022-09-04 16:10:58 +02:00
parent 7af3d86ad3
commit 829fdecd88

View file

@ -81,11 +81,10 @@ ynh_system_user_create --username=$app
#=================================================
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=1
ynh_psql_test_if_first_run
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_test_if_first_run
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name
export db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
@ -158,15 +157,15 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================
#=================================================
# CONFIGURE LOG DIR
#================================================
#=================================================
mkdir -p /var/log/$app
chown -R $app /var/log/$app
chown -R $app:www-data "/var/log/$app"
#================================================
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1