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 {} \;