From d8594d09bc1574b74914a09eb6eab3839fe47de6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 22 May 2021 13:46:08 +0200 Subject: [PATCH] Fix --- conf/systemd.service | 1 + scripts/install | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index d9687d3..85a91e9 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -5,6 +5,7 @@ After=syslog.target network.target [Service] Type=simple User=__APP__ +Group=__APP__ Environment="LC_ALL=C.UTF-8" Environment="LANG=C.UTF-8" Environment="PATH=__NODE_PATH__:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" diff --git a/scripts/install b/scripts/install index 0baf8d0..f9e067b 100644 --- a/scripts/install +++ b/scripts/install @@ -140,8 +140,9 @@ ynh_add_config --template="../conf/jupyter_notebook_config.py" --destination="$f # Set permissions to app files chmod 750 "$final_path" -chown -R root: $final_path/ -chown -R $admin $final_path/.venv/ +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" +chown -R $admin:$app $final_path/.venv/ #================================================= # ADVERTISE SERVICE IN ADMIN PANEL