From 070bcbe2d3d11c796e1892c0e3765cbc9709e8f5 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 23 Apr 2021 17:39:04 +0200 Subject: [PATCH] Fix rights --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index c593c68..826cfc0 100644 --- a/scripts/install +++ b/scripts/install @@ -121,7 +121,7 @@ ynh_setup_source --dest_dir="$final_path/$app" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 6dc6edc..8f1db57 100644 --- a/scripts/restore +++ b/scripts/restore @@ -76,7 +76,7 @@ ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 83bfe98..dd4c35a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -161,7 +161,7 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION