diff --git a/scripts/install b/scripts/install index 23f9e5d..371aac8 100644 --- a/scripts/install +++ b/scripts/install @@ -186,7 +186,7 @@ ynh_add_systemd_config ### that really need such authorization. # Set permissions to app files -chown -R root: $final_path +chown -R $app:www-data $final_path #================================================= diff --git a/scripts/restore b/scripts/restore index 989e3c1..552f30e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -78,7 +78,7 @@ ynh_system_user_create --username=$app #================================================= # Restore permissions on app files -chown -R root: $final_path +chown -R $app:www-data $final_path #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 827a498..9dff0b0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,6 +26,8 @@ export secret=$(ynh_app_setting_get --app=$app --key=secret) export is_public=$(ynh_app_setting_get --app=$app --key=is_public) export final_path=$(ynh_app_setting_get --app=$app --key=final_path) export db_name=$(ynh_app_setting_get --app=$app --key=db_name) +export db_user=$db_name +export db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) #================================================= # CHECK VERSION @@ -185,7 +187,7 @@ ynh_add_systemd_config #================================================= # Set permissions on app files -chown -R root: $final_path +chown -R $app:www-data $final_path #================================================= # SETUP SSOWAT