From 8f42ab586bc15c15445caac87fc991f515468571 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 22 May 2021 15:17:28 +0200 Subject: [PATCH] Fix --- scripts/restore | 5 +++-- scripts/upgrade | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index 549962d..b068bce 100644 --- a/scripts/restore +++ b/scripts/restore @@ -71,8 +71,9 @@ ynh_system_user_create --username=$app # Restore permissions on app files chmod 750 "$final_path" -chown -R root: $final_path/ -chown -R $admin $final_path/.venv/ +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" +chown -R $admin:$app $final_path/.venv/ #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 7ec88f8..6a1ccbd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -149,8 +149,9 @@ ynh_add_systemd_config # Set permissions on app files chmod 750 "$final_path" -chown -R root: $final_path/ -chown -R $admin $final_path/.venv/ +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" +chown -R $admin:$app $final_path/.venv/ #================================================= # ADVERTISE SERVICE IN ADMIN PANEL