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