mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +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:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
unix_path = config["server"]["unix"]
|
unix_path = config["server"].get("unix", "")
|
||||||
if unix_path and os.path.exists(unix_path):
|
if unix_path and os.path.exists(unix_path):
|
||||||
logger.info("Removing socket %r ...", unix_path)
|
logger.info("Removing socket %r ...", unix_path)
|
||||||
os.remove(unix_path)
|
os.remove(unix_path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user