From d3c31f9f081a88e589dad6cfa3b6dbd93e8a294b Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 23 Jan 2019 22:36:38 +0100 Subject: [PATCH 1/2] Update install --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index e0a0ac0..042b324 100644 --- a/scripts/install +++ b/scripts/install @@ -53,7 +53,7 @@ ynh_app_setting_set $app admin $admin ynh_app_setting_set $app domain $domain ynh_app_setting_set $app path_url $path_url ynh_app_setting_set $app is_public $is_public -ynh_app_setting_set $app enable_terminal $is_public +ynh_app_setting_set $app enable_terminal $enable_terminal #================================================= # STANDARD MODIFICATIONS @@ -144,4 +144,4 @@ yunohost service add $app --log "systemd" # START SERVICE #================================================= -ynh_systemd_action -n $app -a start -l "JupyterHub is now running at" -p "systemd" \ No newline at end of file +ynh_systemd_action -n $app -a start -l "JupyterHub is now running at" -p "systemd" From c87bdc2ae58aeeadf1a72e7b79c8d5e8d1a21de1 Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 23 Jan 2019 22:50:23 +0100 Subject: [PATCH 2/2] Fix change url --- scripts/change_url | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 184db43..7bb414d 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -80,6 +80,8 @@ nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf if [ $change_path -eq 1 ] then + domain="$old_domain" + path_url="$new_path" ynh_add_nginx_config fi