From 436610f83e7674ef6dd93bac5b81ddc44936d2d6 Mon Sep 17 00:00:00 2001 From: GeorgianaElena Date: Tue, 19 Feb 2019 17:28:43 +0200 Subject: [PATCH] Use the actual installation path of chp service, changed traefik-proxy version --- setup.py | 2 +- tljh/installer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 896c8db..61f8ead 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( 'jinja2', 'pluggy>0.7<1.0', 'passlib', - 'jupyterhub-traefik-proxy==0.1.0a1' + 'jupyterhub-traefik-proxy==0.1.*' ], entry_points={ 'console_scripts': [ diff --git a/tljh/installer.py b/tljh/installer.py index af90af8..56f5ae5 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -103,7 +103,7 @@ def remove_chp(): """ Ensure CHP is not running """ - if os.path.exists(os.path.join(HERE, 'systemd-units', 'configurable-http-proxy.service')): + if os.path.exists("/etc/systemd/system/configurable-http-proxy.service"): if systemd.check_service_active('configurable-http-proxy.service'): try: systemd.stop_service('configurable-http-proxy.service')