From a62ce1eff4065dfabffb0e3198f028688a6d7cbe Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 25 Mar 2021 09:08:22 +0100 Subject: [PATCH] fix --- scripts/install | 3 +-- scripts/restore | 3 +-- scripts/upgrade | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index ee0aa9a..7df3f20 100644 --- a/scripts/install +++ b/scripts/install @@ -111,8 +111,7 @@ ynh_store_file_checksum --file="$final_path/settings.php" #================================================= # Set permissions to app files -chown -R $app: $final_path -chmod o-rwx $final_path +chown -R root: $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 537bc2b..8980cb7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,8 +66,7 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Set permissions to app files -chown -R $app: $final_path -chmod o-rwx $final_path +chown -R root: $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 49575de..2416282 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,8 +140,7 @@ fi #================================================= # Set permissions to app files -chown -R $app: $final_path -chmod o-rwx $final_path +chown -R root: $final_path chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files