1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jupyterlab_ynh.git synced 2024-09-03 19:26:35 +02:00
This commit is contained in:
Éric Gaspar 2023-02-21 10:12:24 +01:00
parent 63971cc12f
commit 470092bf0e
5 changed files with 5 additions and 23 deletions

View file

@ -34,7 +34,7 @@ ynh_change_url_nginx_config
domain=$new_domain domain=$new_domain
path=${new_path%/} path=${new_path%/}
ynh_add_config --template="../conf/jupyterhub_config.py" --destination="$final_path/config/jupyterhub_config.py" ynh_add_config --template="../conf/jupyterhub_config.py" --destination="$install_dir/config/jupyterhub_config.py"
#================================================= #=================================================
# GENERIC FINALISATION # GENERIC FINALISATION

View file

@ -9,22 +9,10 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
enable_terminal=$YNH_APP_ARG_ENABLE_TERMINAL
#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================
ynh_app_setting_set --app=$app --key=enable_terminal --value=$enable_terminal
#================================================= #=================================================
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================
#REMOVEME? ynh_script_progression --message="Installing dependencies..." --weight=23 ynh_script_progression --message="Installing dependencies..." --weight=23
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs

View file

@ -25,7 +25,7 @@ chown -R $admin: $install_dir/.venv/
#================================================= #=================================================
# REINSTALL DEPENDENCIES # REINSTALL DEPENDENCIES
#================================================= #=================================================
#REMOVEME? ynh_script_progression --message="Reinstalling dependencies..." --weight=75 ynh_script_progression --message="Reinstalling dependencies..." --weight=75
# Define and install dependencies # Define and install dependencies
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version

View file

@ -42,7 +42,7 @@ ynh_add_nginx_config
#================================================= #=================================================
# UPGRADE DEPENDENCIES # UPGRADE DEPENDENCIES
#================================================= #=================================================
ynh_script_progression --message="Upgrading dependencies..." --weight=20 ynh_script_progression --message="Upgrading Node.js..." --weight=3
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs
@ -57,7 +57,7 @@ python3 -m pip install pipenv
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Building app..." --weight=60 ynh_script_progression --message="Building app..." --weight=6
pushd $install_dir pushd $install_dir
mkdir -p .venv mkdir -p .venv

View file

@ -2,12 +2,6 @@ test_format = 1.0
[default] [default]
# -------------------------------
# Default args to use for install
# -------------------------------
args.enable_terminal = true
# ------------------------------- # -------------------------------
# Commits to test upgrade from # Commits to test upgrade from
# ------------------------------- # -------------------------------