From d772b1d6a625fe3e0d77a0d3e2f0e6bf180cce9d Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Thu, 6 Jan 2022 18:16:38 +0100 Subject: [PATCH] Bugfix file permissions on /var/www/pyinventory --- scripts/install | 2 +- scripts/restore | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 9192151..5f2aede 100755 --- a/scripts/install +++ b/scripts/install @@ -205,7 +205,7 @@ yunohost service add $app --description="Web based management to catalog things" # Set permissions to app files chown -R "$app:" "$log_path" -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" chmod o-rwx "$log_path" diff --git a/scripts/restore b/scripts/restore index 5725f4b..9e8f76c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -70,7 +70,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" --use_shell #================================================= # Restore permissions on app files -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" #================================================= @@ -140,7 +140,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" # Set permissions to app files chown -R "$app:" "$log_path" -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" chmod o-rwx "$log_path" diff --git a/scripts/upgrade b/scripts/upgrade index 581f56d..33fe0fa 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -197,7 +197,7 @@ yunohost service add $app --description="Web based management to catalog things" # Set permissions to app files chown -R "$app:" "$log_path" -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" chmod o-rwx "$log_path"