diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2019-03-07 19:00:37 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-04-18 12:09:33 +0000 |
commit | c15bbb0e78da1393c5e168d0aafa2fc984ef07c4 (patch) | |
tree | 70e4813cdc670d7caab55195e8ec3fc37d9647ea /bootstrap/template.py | |
parent | 033eca2df381574bcd99c255cc47300568d5b194 (diff) | |
download | samba-c15bbb0e78da1393c5e168d0aafa2fc984ef07c4.tar.gz |
bootstrap/template.py: render locale.sh for each dist and make shell scripts executable
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'bootstrap/template.py')
-rwxr-xr-x | bootstrap/template.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |