|
|
|
@ -157,12 +157,13 @@ def secure(
|
|
|
|
|
f.write(str(uuid.uuid4()))
|
|
|
|
|
f.close()
|
|
|
|
|
#
|
|
|
|
|
manifest = get_manifest(manifest)
|
|
|
|
|
_config = cms.engine.config.get(manifest)
|
|
|
|
|
if 'source' not in _config['system']:
|
|
|
|
|
_config['system']['source'] = {'id':'disk'}
|
|
|
|
|
_config['system']['source']['key'] = keyfile
|
|
|
|
|
cms.engine.config.write(_config,manifest)
|
|
|
|
|
_msg = f"""{PASSED} [bold]{_config['system']['layout']['header']['title']}[/bold] : A key was generated and written to {keyfile}
|
|
|
|
|
_msg = f"""{PASSED} [bold]{_config['layout']['header']['title']}[/bold] : A key was generated and written to {keyfile}
|
|
|
|
|
use this key in header to enable reload of the site ...`
|
|
|
|
|
"""
|
|
|
|
|
else:
|
|
|
|
|