diff --git a/scripts/install b/scripts/install index ad5f66c..aa453da 100644 --- a/scripts/install +++ b/scripts/install @@ -117,7 +117,13 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Building app..." -ynh_add_systemd_config +ynh_app_setting_set --app=$app --key=final_path --value=$final_path +mkdir -p "$final_path" + +pushd $final_path + mkdir -p .venv + PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq --three +popd #================================================= # ADD A CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index f22f92a..49a3a5f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,8 +127,8 @@ then ynh_script_progression --message="Building app..." --weight=160 pushd $final_path - PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq - ynh_exec_warn_less python3 -m pipenv run jupyterhub upgrade-db + mkdir -p .venv + PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq popd fi