Fix ensure_symlinks to use method that actually exists

This commit is contained in:
yuvipanda
2018-07-31 13:23:43 -07:00
parent 816e9a01a1
commit 6394652025

View File

@@ -287,7 +287,9 @@ def ensure_symlinks(prefix):
"""
tljh_config_src = os.path.join(prefix, '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)