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