From 3d34f9d4de853b1a9854020af1de9af3a47ab453 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 26 Mar 2021 18:45:28 +0100 Subject: [PATCH] Fix --- scripts/install | 3 ++- scripts/restore | 3 ++- scripts/upgrade | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 7ad7cba..7e44bbd 100644 --- a/scripts/install +++ b/scripts/install @@ -168,7 +168,8 @@ ynh_secure_remove --file=/tmp/admin.sql ynh_script_progression --message="Securing files and directories..." # Set permissions to ampache directory -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 $final_path/config/ampache.cfg.php #================================================= diff --git a/scripts/restore b/scripts/restore index 2ff8cf2..cfd2b5c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -69,7 +69,8 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Restoring user rights..." # Restore permissions on app files -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 $final_path/config/ampache.cfg.php #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 802f538..c361b16 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -179,7 +179,8 @@ fi ynh_script_progression --message="Securing files and directories..." # Set permissions on app files -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 $final_path/config/ampache.cfg.php #=================================================