Commit 58eea8a6 authored by Tomáš Peterka's avatar Tomáš Peterka

Amarisoft: ability to enable/disable LTE

parent 3336dce1
...@@ -514,7 +514,9 @@ class Computer(object): ...@@ -514,7 +514,9 @@ class Computer(object):
with open("/etc/sudoers.d/slapos-amarisoft", "wt") as fo: with open("/etc/sudoers.d/slapos-amarisoft", "wt") as fo:
fo.writelines(( fo.writelines((
"%slapsoft ALL=(root) NOPASSWD: /bin/systemctl start lte,\\\n", "%slapsoft ALL=(root) NOPASSWD: /bin/systemctl start lte,\\\n",
" /bin/systemctl stop lte\n", " /bin/systemctl stop lte,\\\n",
" /bin/systemctl enable lte,\\\n",
" /bin/systemctl disable lte\n",
"")) ""))
os.chmod("/etc/sudoers.d/slapos-amarisoft", 0o440) os.chmod("/etc/sudoers.d/slapos-amarisoft", 0o440)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment