From ce1dcbca7ba2ea2b55377ab4f96de4f89cf1c770 Mon Sep 17 00:00:00 2001 From: tytan652 Date: Tue, 29 Dec 2020 18:16:39 +0100 Subject: [PATCH] fix(level 3-4): unify files permissions --- scripts/restore | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 21159ea..6670309 100644 --- a/scripts/restore +++ b/scripts/restore @@ -73,7 +73,7 @@ ynh_system_user_create --username=$app # Restore permissions on app files chown -R root: $final_path chown -R $app: $final_path/db -chmod 660 -R $final_path/db +chmod -R 750 $final_path/db #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index c1b8263..7bd5d7f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -142,7 +142,7 @@ ynh_replace_string --match_string="__PORT_WG__" --replace_string="$port_wg" --ta # Set permissions on app files chown -R root: $final_path chown -R $app: $final_path/db -chmod 750 -R $final_path/db +chmod -R 750 $final_path/db #================================================= # SETUP LOGROTATE