From c15bbb0e78da1393c5e168d0aafa2fc984ef07c4 Mon Sep 17 00:00:00 2001 From: Joe Guo Date: Thu, 7 Mar 2019 19:00:37 +1300 Subject: [PATCH] bootstrap/template.py: render locale.sh for each dist and make shell scripts executable Signed-off-by: Joe Guo Reviewed-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- bootstrap/template.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap/template.py b/bootstrap/template.py index 48c008c53ed..2eb70fd693e 100755 --- a/bootstrap/template.py +++ b/bootstrap/template.py @@ -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) -- 2.34.1