From 58feef7a654a879bdd07f70c98fced816e94c278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 21 Mar 2024 23:30:26 +0100 Subject: [PATCH] Change file permission --- 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 aba2024..f4d7d19 100644 --- a/scripts/install +++ b/scripts/install @@ -44,8 +44,7 @@ path_no_slash=${path%/} ynh_add_config --template="jupyterhub_config.py" --destination="$install_dir/config/jupyterhub_config.py" ynh_add_config --template="jupyter_notebook_config.py" --destination="$install_dir/config/jupyter_notebook_config.py" -chown -R root: "$install_dir" -chown -R "$admin:" "$install_dir/venv" +chown -R "$app:$app" "$install_dir" #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 202798a..741562e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -25,8 +25,7 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" -chown -R root: "$install_dir" -chown -R "$admin:" "$install_dir/venv" +chown -R "$app:$app" "$install_dir" #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index a13bc2f..eccc67c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,8 +53,7 @@ path_no_slash=${path%/} ynh_add_config --template="jupyterhub_config.py" --destination="$install_dir/config/jupyterhub_config.py" ynh_add_config --template="jupyter_notebook_config.py" --destination="$install_dir/config/jupyter_notebook_config.py" -chown -R root: "$install_dir" -chown -R "$admin:" "$install_dir/venv" +chown -R "$app:$app" "$install_dir" #================================================= # SETUP SYSTEMD