diff --git a/conf/jupyterlab.service b/conf/jupyterlab.service new file mode 100644 index 0000000..0c43687 --- /dev/null +++ b/conf/jupyterlab.service @@ -0,0 +1,11 @@ +[Unit] +Description=Jupyterlab +After=syslog.target network.target + +[Service] +User=root +Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:__FINAL_PATH__/bin" +ExecStart=Jupyterhub -f __CONFIG_PATH__/jupyterhub_config.py + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/scripts/install b/scripts/install index f0312d8..ae5651e 100644 --- a/scripts/install +++ b/scripts/install @@ -29,6 +29,7 @@ admin=$YNH_APP_ARG_ADMIN #================================================= # Normalize the url path syntax +test -n "$path_url" || path_url="/" path_url=$(ynh_normalize_url_path $path_url) # This function check also the availability of this one @@ -80,7 +81,7 @@ config_jupyterlab # DOWNLOAD, CHECK AND INSTALL JUPYTERLAB #================================================= -wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh +wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$miniconda_architecture.sh bash Miniconda3-latest-Linux-x86_64.sh -b -p $final_path