Skip to content

Commit

Permalink
bootstrap/template.py: render locale.sh for each dist and make shell …
Browse files Browse the repository at this point in the history
…scripts executable

Signed-off-by: Joe Guo <[email protected]>
Reviewed-by: Stefan Metzmacher <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
catalyst-joe-guo authored and metze-samba committed Apr 18, 2019
1 parent 033eca2 commit c15bbb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ def render(dists):
for dist, config in dists.items():
home = config['home']
os.makedirs(home, exist_ok=True)
for key in ['packages.yml', 'bootstrap.sh', 'Dockerfile']:
for key in ['bootstrap.sh', 'locale.sh', 'packages.yml', 'Dockerfile']:
path = os.path.join(home, key)
log.info('%s: render "%s" to %s', dist, key, path)
with io.open(path, mode='wt', encoding='utf8') as fp:
fp.write(config[key])
if path.endswith('.sh'):
os.chmod(path, 0o755)

key = 'Vagrantfile'
path = os.path.join(OUT, key)
Expand Down

0 comments on commit c15bbb0

Please sign in to comment.