1
This commit is contained in:
parent
05d056c5fb
commit
92b260aa87
6
hlna.py
6
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=""):
|
||||
|
Loading…
Reference in New Issue
Block a user