From d469329a0e797007f5206d3f965d6dda575e7ce6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 21 Apr 2021 15:32:01 +0200 Subject: [PATCH] add permissions --- scripts/install | 2 ++ scripts/restore | 2 ++ scripts/upgrade | 2 ++ 3 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 44120f3..ab2bbca 100755 --- a/scripts/install +++ b/scripts/install @@ -138,6 +138,8 @@ 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 chmod 600 $final_path/.env #================================================= diff --git a/scripts/restore b/scripts/restore index 563c0c2..df2d83c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -73,6 +73,8 @@ 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 fcd7c41..fec4b5b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -126,6 +126,8 @@ 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 chmod 600 $final_path/.env #=================================================