Skip to content
Snippets Groups Projects
Commit 7dc28b0b authored by Florent Thiery's avatar Florent Thiery
Browse files

fix conf read/write opening mode, refs #26945

parent 7e28a966
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ def setup(interactive=True):
cmds.append('netcapturectl add')
# hw acceleration requires boot-time module options so a reboot will be needed
with open('/etc/miris/netcapture.json.example', 'w') as f:
with open('/etc/miris/netcapture.json.example', 'r+') as f:
c = json.load(f)
c['enable_hw_acceleration'] = True
json.dump(c, f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment