From 87828aa86a71e1f683e9662937d6d0c047463a18 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Mon, 17 Sep 2018 22:24:54 +0200 Subject: [PATCH] make sure only needed files are owned by app --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 522c066..57b01c4 100644 --- a/scripts/install +++ b/scripts/install @@ -151,6 +151,9 @@ ynh_add_systemd_config # SECURE FILES AND DIRECTORIES #================================================= +# Reset permissions +chown -R root:root "$final_path" + # Set permissions to app files chown -R "$app":"$app" "$final_path/data/" chmod -R 750 "$final_path/data/"