add dialout to l_samenv

+ remove superfluous call to pip command
This commit is contained in:
2024-07-03 14:44:21 +02:00
parent 56c63cefd6
commit d69301a5c9

View File

@ -218,7 +218,7 @@ def pip():
os.remove(tmpname)
else:
print(pipcmd)
unix_cmd(pipcmd, doit, stdout=None)
# unix_cmd(pipcmd, doit, stdout=None)
show.dirty = True
@ -566,6 +566,8 @@ def handle_config():
if servicecfg and to_start.get('service') is None:
to_start[service] = 'restart'
if 'dialout' not in unix_cmd('id l_samenv'):
do_cmd('usermod -a -G dialout l_samenv')
pip()
if reload_systemd:
do_cmd('systemctl daemon-reload')