From 6b1a8338d8df73d08dd641187505ee5835aaa22f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 21 Mar 2022 20:00:54 +0100 Subject: [PATCH] Fix rights --- scripts/install | 4 ++-- scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 831b362..77ff61a 100755 --- a/scripts/install +++ b/scripts/install @@ -214,8 +214,8 @@ then timezone=$(cat /etc/timezone) ynh_add_config --template="../conf/config.js" --destination="$final_path/infcloud/config.js" - chmod 400 "$final_path/infcloud/config.js" - chown $app:$app "$final_path/infcloud/config.js" + chmod 440 "$final_path/infcloud/config.js" + chown $app:www-data "$final_path/infcloud/config.js" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 43f6fbc..b7612d2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -324,6 +324,8 @@ then fi # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="$final_path/infcloud/config.js" + chmod 440 "$final_path/infcloud/config.js" + chown $app:www-data "$final_path/infcloud/config.js" fi fi