piston/container/configure.py

14 lines
476 B
Python
Raw Normal View History

2021-01-28 10:20:08 +01:00
import yaml
with open('piston.yaml') as dbc:
with open('install_script.sh') as install_script_file:
with open('build.yaml' , 'w+') as distrobuilder_config_file_new:
distrobuilder_config = yaml.safe_load(dbc)
distrobuilder_config['actions'].append({
'trigger': 'post-packages',
'action': install_script_file.read(),
})
2021-01-29 01:28:32 +01:00
yaml.dump(distrobuilder_config, distrobuilder_config_file_new)