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 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"