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:
parent
7af3d86ad3
commit
829fdecd88
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue