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