add dialout to l_samenv
+ remove superfluous call to pip command
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user