mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
fixed cleanup for non-unixsocket configs
This commit is contained in:
parent
88bbdf322f
commit
e5dfc9e306
@ -37,7 +37,7 @@ def main() -> None:
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
|
||||
unix_path = config["server"]["unix"]
|
||||
unix_path = config["server"].get("unix", "")
|
||||
if unix_path and os.path.exists(unix_path):
|
||||
logger.info("Removing socket %r ...", unix_path)
|
||||
os.remove(unix_path)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user