mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Missing negation
This commit is contained in:
@@ -198,7 +198,7 @@ def ensure_host_system_can_install_tljh():
|
|||||||
# Require Ubuntu 18.04+
|
# Require Ubuntu 18.04+
|
||||||
distro = get_os_release_variable("ID")
|
distro = get_os_release_variable("ID")
|
||||||
version = float(get_os_release_variable("VERSION_ID"))
|
version = float(get_os_release_variable("VERSION_ID"))
|
||||||
if distro in ["ubuntu", "debian"]:
|
if distro not in ["ubuntu", "debian"]:
|
||||||
print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
|
print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif distro == "ubuntu" and float(version) < 18.04:
|
elif distro == "ubuntu" and float(version) < 18.04:
|
||||||
|
|||||||
Reference in New Issue
Block a user