From 5ccc9c7b3c4965a77595544466e937c7d2f16bdb Mon Sep 17 00:00:00 2001 From: Boudewijn Date: Sat, 1 Mar 2025 10:57:07 +0100 Subject: [PATCH] tweak permissions in manifest and conf/install --- manifest.toml | 2 +- scripts/install | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index c5d1434..b9d4615 100644 --- a/manifest.toml +++ b/manifest.toml @@ -67,7 +67,7 @@ ram.runtime = "100M" sha256 = "f92a6dc9c98ec1e3837939db571833d28e72b992f5a9611925e9d242fcb40f72" [resources.system_user] - #user = "__APP_NAME__:rwx" + user = "__APP_NAME__:rwx" [resources.install_dir] group = "www-data:r-x" diff --git a/scripts/install b/scripts/install index 2cc1541..e560670 100755 --- a/scripts/install +++ b/scripts/install @@ -57,7 +57,7 @@ ynh_script_progression "Adding $app's configuration files..." ynh_config_add --template=.env --destination="$install_dir/.env" chmod 600 "$install_dir/.env" -chown "$app:$app" "$install_dir/.env" +chown "$app:www-data" "$install_dir/.env" #================================================= @@ -124,7 +124,7 @@ ynh_store_file_checksum "$install_dir/.env" app_key=$(cat $install_dir/.env | grep -e ^APP_KEY | cut -c 9-) ynh_app_setting_set --key=app_key --value=$app_key -chgrp "$app" -R "$install_dir/storage" "$install_dir/public" +chgrp "$app:www-data" -R "$install_dir/storage" "$install_dir/public" chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public" "$install_dir/bootstrap/" #=================================================