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

remove activation key from conf.sh after use

parent d3b316de
No related branches found
No related tags found
No related merge requests found
...@@ -48,3 +48,11 @@ def setup(interactive=True): ...@@ -48,3 +48,11 @@ def setup(interactive=True):
with open(path, 'w') as fo: with open(path, 'w') as fo:
fo.write(req.text) fo.write(req.text)
utils.log('Configuration written.') utils.log('Configuration written.')
utils.log('Removing activation key from conf.sh')
with open('conf.sh', 'r') as f:
lines = f.readlines()
with open('conf.sh', 'w') as f:
for l in lines:
if not l.startswith('SKYREACH_ACTIVATION_KEY'):
f.write(l)
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