Store hub state inside install_prefix

rm -rf'ing the prefix should get rid of almost everything
This commit is contained in:
yuvipanda
2018-06-27 14:21:08 -07:00
parent cd38386d25
commit bfd2a8bca3
2 changed files with 3 additions and 3 deletions

View File

@@ -37,6 +37,8 @@ def ensure_jupyterhub_service(prefix):
with open(proxy_secret_path, 'w') as f:
f.write('CONFIGPROXY_AUTH_TOKEN=' + secrets.token_hex(32))
os.makedirs(os.path.join(INSTALL_PREFIX, 'hub', 'state'), mode=0o700, exist_ok=True)
def ensure_jupyterhub_package(prefix):
"""