From bd2bbb961bdf1a05a076e78ccc17717960b2cd0b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 7 May 2021 13:34:47 +0200 Subject: [PATCH] permissions --- scripts/install | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 492187c..b367332 100644 --- a/scripts/install +++ b/scripts/install @@ -173,7 +173,8 @@ ynh_use_logrotate --logfile=$final_path/app/data/_data_/_default_/logs/fail2ban/ # Set permissions to app files find $final_path/. -type d -exec chmod 755 {} \; find $final_path/. -type f -exec chmod 644 {} \; -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:www-data $final_path #================================================= # SETUP FAIL2BAN diff --git a/scripts/upgrade b/scripts/upgrade index 26e3e1e..fb56e25 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -168,7 +168,8 @@ ynh_use_logrotate --logfile=$final_path/app/data/_data_/_default_/logs/fail2ban/ #================================================= # Set permissions on app files -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:www-data $final_path find $final_path/. -type d -exec chmod 755 {} \; find $final_path/. -type f -exec chmod 644 {} \;