From e5e0f23010b67c0a6f9a0dc0211a90432464bb02 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 13 May 2023 18:28:57 +0300 Subject: [PATCH] 1 --- hlna.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hlna.py b/hlna.py index 8460a12..7142e1f 100755 --- a/hlna.py +++ b/hlna.py @@ -518,9 +518,9 @@ def start_stop(action, g, m, b): names_serverstart = choose_map(names_serverstart) for i in names_serverstart: data = read_yaml(i) - os.system(f"~/git/hln-a/hlna.py rcon SaveWorld -m {i}") if action == ("restart", "stop") else "" + y = os.system(f"~/git/hln-a/hlna.py rcon SaveWorld -m {i}") if action == ("restart", "stop") else "" x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service") - print_line(x) + print_line(y) if x == 0: print_line("Готово") else: