From 11351017f3568b77238e2e1d657d239fff42f9bc Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 11 Apr 2021 22:42:27 +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 2e130d0..1177486 100644 --- a/scripts/install +++ b/scripts/install @@ -94,7 +94,7 @@ mkdir -p "$final_path/$app" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:$app "$final_path" +chown -R $app:$app "$final_path" #================================================= # NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 4c4a581..1853980 100644 --- a/scripts/restore +++ b/scripts/restore @@ -70,7 +70,7 @@ ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:$app "$final_path" +chown -R $app:$app "$final_path" #================================================= # RESTORE THE PHP-FPM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 2494968..9154fdb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,7 +137,7 @@ update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION} chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:$app "$final_path" +chown -R $app:$app "$final_path" #================================================= # STORE THE CONFIG FILE CHECKSUM