From 6b2512314b08ad7e426587d78b0dd0fc8b1c2ccb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 21 Apr 2021 19:33:10 +0200 Subject: [PATCH] Fix perm --- scripts/install | 4 +--- scripts/restore | 2 -- scripts/upgrade | 4 +--- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index ab2bbca..92bce99 100755 --- a/scripts/install +++ b/scripts/install @@ -137,9 +137,7 @@ ynh_permission_update --permission="main" --remove="visitors" #================================================= # Set permissions to app files -chown -R $app:$app $final_path -chown -R www-data:www-data $final_path/writable -chown -R www-data:www-data $final_path/public/media +chown -R $app: $final_path chmod 600 $final_path/.env #================================================= diff --git a/scripts/restore b/scripts/restore index df2d83c..563c0c2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -73,8 +73,6 @@ ynh_restore_file --origin_path="$final_path" # Set permissions to app files chown -R $app:$app $final_path -chown -R www-data:www-data $final_path/writable -chown -R www-data:www-data $final_path/public/media chmod 600 $final_path/.env #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fec4b5b..4d00011 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,9 +125,7 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" #================================================= # Set permissions to app files -chown -R $app:$app $final_path -chown -R www-data:www-data $final_path/writable -chown -R www-data:www-data $final_path/public/media +chown -R $app: $final_path chmod 600 $final_path/.env #=================================================