little fixes a labels when stop and start, installer first functions works

This commit is contained in:
2024-09-10 20:06:33 +02:00
parent 35406026f0
commit 8fa6e6374f
5 changed files with 66 additions and 21 deletions

View File

@ -1,12 +1,12 @@
#!/usr/bin/python3
from subprocess import check_call
from pathlib import Path
home = Path.home()
path_to_file = home / '.config/wire_py/wg_py'
with open(path_to_file, 'r') as file:
for line in file.readlines():
a_con = line[5:]
path_to_file = '/home/punix/.config/wire_py/wg_py'
with open(path_to_file, ) as file:
for line in file.readlines():
a_con = line[5:]
check_call(['nmcli', 'connection', 'up', a_con])
file.close()