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