1
This commit is contained in:
parent
1314da7497
commit
e5e0f23010
4
hlna.py
4
hlna.py
@ -518,9 +518,9 @@ def start_stop(action, g, m, b):
|
|||||||
names_serverstart = choose_map(names_serverstart)
|
names_serverstart = choose_map(names_serverstart)
|
||||||
for i in names_serverstart:
|
for i in names_serverstart:
|
||||||
data = read_yaml(i)
|
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")
|
x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service")
|
||||||
print_line(x)
|
print_line(y)
|
||||||
if x == 0:
|
if x == 0:
|
||||||
print_line("Готово")
|
print_line("Готово")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user