mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-02 03:16:45 +02:00
Merge pull request #759 from AnthonyMichaelTDM/issue-758
fix(issue 758): Handle existing symlink in start_zerotier function
This commit is contained in:
@@ -73,7 +73,10 @@ def start_zerotier():
|
||||
|
||||
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"])
|
||||
|
||||
|
Reference in New Issue
Block a user