This commit is contained in:
Евгений Храмов 2023-05-16 00:11:51 +03:00
parent 787e2c35c7
commit c127b5e4c4

@ -576,7 +576,6 @@ def switch(g, m, e): #добавить all
print(f"Готов - {i}") print(f"Готов - {i}")
start = "start" if e else "stop" start = "start" if e else "stop"
enable = "enable" if e else "disable" enable = "enable" if e else "disable"
os.system(f"systemctl --user {start} ark_{i}")
os.system(f"systemctl --user {enable} ark_{i}") os.system(f"systemctl --user {enable} ark_{i}")
else: else:
print(f"Ошибка перемещения {i}") print(f"Ошибка перемещения {i}")