From 330526a225b59097c091ec2cc007bb3ba5f51608 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 22 May 2021 13:38:36 +0200 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 8187b5b..0baf8d0 100644 --- a/scripts/install +++ b/scripts/install @@ -140,8 +140,7 @@ ynh_add_config --template="../conf/jupyter_notebook_config.py" --destination="$f # Set permissions to app files chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" +chown -R root: $final_path/ chown -R $admin $final_path/.venv/ #================================================= diff --git a/scripts/restore b/scripts/restore index 31bc741..549962d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -71,8 +71,7 @@ ynh_system_user_create --username=$app # Restore permissions on app files chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" +chown -R root: $final_path/ chown -R $admin $final_path/.venv/ #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 88ff822..7ec88f8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -149,8 +149,7 @@ ynh_add_systemd_config # Set permissions on app files chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" +chown -R root: $final_path/ chown -R $admin $final_path/.venv/ #=================================================