From d69301a5c9b5ba9dcb084671fb97fcfe792b477c Mon Sep 17 00:00:00 2001 From: l_samenv Date: Wed, 3 Jul 2024 14:44:21 +0200 Subject: [PATCH] add dialout to l_samenv + remove superfluous call to pip command --- install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.py b/install.py index 5027db2..a03870c 100755 --- a/install.py +++ b/install.py @@ -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')