mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-05 12:56:48 +02:00
fix(issue 758): Handle existing symlink in start_zerotier function
Closes Zoraxy 3.2.5 don't start in the docker container Fixes #758
This commit is contained in:
@@ -73,7 +73,10 @@ def start_zerotier():
|
|||||||
|
|
||||||
os.makedirs(config_dir, exist_ok=True)
|
os.makedirs(config_dir, exist_ok=True)
|
||||||
|
|
||||||
os.symlink(config_dir, zt_path, target_is_directory=True)
|
try:
|
||||||
|
os.symlink(config_dir, zt_path, target_is_directory=True)
|
||||||
|
except FileExistsError:
|
||||||
|
print(f"Symlink {zt_path} already exists, skipping creation.")
|
||||||
|
|
||||||
zerotier_proc = popen(["zerotier-one"])
|
zerotier_proc = popen(["zerotier-one"])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user