mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Fix ensure_symlinks to use method that actually exists
This commit is contained in:
@@ -287,7 +287,9 @@ def ensure_symlinks(prefix):
|
|||||||
"""
|
"""
|
||||||
tljh_config_src = os.path.join(prefix, 'bin', 'tljh-config')
|
tljh_config_src = os.path.join(prefix, 'bin', 'tljh-config')
|
||||||
tljh_config_dest = '/usr/local/bin/tljh-config'
|
tljh_config_dest = '/usr/local/bin/tljh-config'
|
||||||
if not os.is_symlink(tljh_config_dest):
|
if not os.path.exists(tljh_config_dest):
|
||||||
|
# If this exists, we leave it alone. Do *not* remove it,
|
||||||
|
# since we are running as root and it could be anything!
|
||||||
os.symlink(tljh_config_src, tljh_config_dest)
|
os.symlink(tljh_config_src, tljh_config_dest)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user