From 561098119e0a7806083194e3e0f6357cdae26296 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 27 Mar 2021 00:19:32 +0100 Subject: [PATCH] Fix group permissions --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 0297f9d..6f16a83 100644 --- a/scripts/install +++ b/scripts/install @@ -95,7 +95,7 @@ ynh_add_fpm_config --usage=medium --footprint=medium --package="$extra_php_depen #================================================= # Set permissions on app files -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" find "$final_path" -type f -exec chmod 640 {} \; find "$final_path/bin" -type f -exec chmod 750 {} \; find "$final_path" -type d -exec chmod 750 {} \; diff --git a/scripts/restore b/scripts/restore index b71f282..ebea97b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -73,7 +73,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path #================================================= # Restore permissions on app files -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" find "$final_path" -type f -exec chmod 640 {} \; find "$final_path/bin" -type f -exec chmod 750 {} \; find "$final_path" -type d -exec chmod 750 {} \; diff --git a/scripts/upgrade b/scripts/upgrade index b887d90..2b56570 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -151,7 +151,7 @@ fi #================================================= # Set permissions on app files -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" find "$final_path" -type f -exec chmod 640 {} \; find "$final_path/bin" -type f -exec chmod 750 {} \; find "$final_path" -type d -exec chmod 750 {} \;