From 7c8a7910687c4c89a41c0e36617613712c350206 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 23 Aug 2021 09:18:58 +0200 Subject: [PATCH] Fix --- scripts/install | 6 ------ scripts/upgrade | 6 ------ 2 files changed, 12 deletions(-) diff --git a/scripts/install b/scripts/install index 3256ec3..a7544a6 100755 --- a/scripts/install +++ b/scripts/install @@ -76,12 +76,6 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --source_id="app.$architecture" -# FIXME: this should be managed by the core in the future -# Here, as a packager, you may have to tweak the ownerhsip/permissions -# such that the appropriate users (e.g. maybe www-data) can access -# files in some cases. -# But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder - -# this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app: $final_path diff --git a/scripts/upgrade b/scripts/upgrade index 910b3b0..88059ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,12 +84,6 @@ then ynh_setup_source --dest_dir="$final_path" --source_id="app.$architecture" fi -# FIXME: this should be managed by the core in the future -# Here, as a packager, you may have to tweak the ownerhsip/permissions -# such that the appropriate users (e.g. maybe www-data) can access -# files in some cases. -# But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder - -# this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"