From b88c7adfec92de4375b3be81c02b4f15f2bdf965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 22 Aug 2018 20:49:19 +0200 Subject: [PATCH] Fix permission in final_path --- 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 b3624ca..d00f24d 100644 --- a/scripts/install +++ b/scripts/install @@ -182,7 +182,8 @@ cp -r ../sources/page $final_path/syncserver/ # SECURE FILES AND DIRECTORIES #================================================= -# no need, keep the default root:root +chown $app -R $final_path +chmod u=rwX,g=rX,o= -R $final_path #================================================= # SETUP LOGROTATE diff --git a/scripts/restore b/scripts/restore index c097ec1..23684c3 100644 --- a/scripts/restore +++ b/scripts/restore @@ -74,7 +74,8 @@ ynh_system_user_create "$app" # RESTORE USER RIGHTS #================================================= -# no need, keep the default root:root +chown $app -R $final_path +chmod u=rwX,g=rX,o= -R $final_path #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 57cfb9c..ae7b1be 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -190,7 +190,8 @@ cp -r ../sources/page $final_path/syncserver/ # SECURE FILES AND DIRECTORIES #================================================= -# no need, keep the default root:root +chown $app -R $final_path +chmod u=rwX,g=rX,o= -R $final_path #================================================= # SETUP LOGROTATE