From 9ce684dcf972d6ccc527c7d26c15b5d0e70e1410 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 25 Mar 2021 08:53:32 +0100 Subject: [PATCH] Fix --- 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 172f4b6..ee0aa9a 100644 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,7 @@ ynh_store_file_checksum --file="$final_path/settings.php" #================================================= # Set permissions to app files -chown -R root: $final_path +chown -R $app: $final_path chmod o-rwx $final_path chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files diff --git a/scripts/restore b/scripts/restore index 83cd632..537bc2b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,7 +66,7 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Set permissions to app files -chown -R root: $final_path +chown -R $app: $final_path chmod o-rwx $final_path chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files diff --git a/scripts/upgrade b/scripts/upgrade index 5fdece7..49575de 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,7 +140,7 @@ fi #================================================= # Set permissions to app files -chown -R root: $final_path +chown -R $app: $final_path chmod o-rwx $final_path chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files