diff --git a/hlna.py b/hlna.py index c4dcdee..2e7da3a 100755 --- a/hlna.py +++ b/hlna.py @@ -668,9 +668,7 @@ def check_exist_servers(g): def start_stop(action, g, m, list_config=list_config): print_line("Вход в start_stop", g) """Функция изменения статусов сервера""" - if g != "ark" or "7days": - return - elif g == "ark": + if g == "ark": print_line("g_ark") check_exist_servers(g) dict_mapname = {} @@ -700,6 +698,8 @@ def start_stop(action, g, m, list_config=list_config): x = os.system(f"systemctl --user {action} 7days.service") if x == 0: print_line("Готово") + else: + return def read_yaml(list_config=list_config, flag=True, game=""):