From 201c386a231167210f2d8bab970adcdb97e2e038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 11 Jul 2023 16:34:57 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 63acdac..8d60997 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -92,7 +92,8 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=10 ynh_install_app_dependencies $pkg_dependencies ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_use_nodejs -$ynh_npm install -g configurable-http-proxy + +$ynh_npm install -g configurable-http-proxy npm #================================================= # SPECIFIC UPGRADE @@ -104,11 +105,12 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Building app..." --weight=160 - #ynh_secure_remove $final_path/.venv + ynh_secure_remove $final_path/.venv + + python3 -m venv $final_path/venv + source $final_path/venv/bin/activate pushd $final_path - python3 -m venv $final_path/venv - source $final_path/venv/bin/activate ynh_exec_warn_less pip install jupyterlab==$jupyterlab_version jupyterhub notebook jupyter_collaboration jupyterhub-ldapauthenticator pyzmq popd fi