diff options
author | Neil Williams <codehelp@debian.org> | 2016-04-16 18:28:18 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2016-04-16 18:28:18 +0100 |
commit | f19dc2e32f6b9b7418fa273bb925ebb049ff9fd4 (patch) | |
tree | 79f958ab4610759ebb8570d40063771451449787 /bin | |
parent | 1b5f88f744a2ad2e5d8095749adb3f50af522728 (diff) | |
download | vmdebootstrap-f19dc2e32f6b9b7418fa273bb925ebb049ff9fd4.tar.gz |
make the debootstrap.log readable, when things go wrong.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vmdebootstrap | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap index 00c77f8..63de77b 100755 --- a/bin/vmdebootstrap +++ b/bin/vmdebootstrap @@ -319,6 +319,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth rootdir = filesystem.devices['rootdir'] if rootdir: db_log = os.path.join(rootdir, 'debootstrap', 'debootstrap.log') + os.chmod(db_log, 0o644) if os.path.exists(db_log): shutil.copy(db_log, os.getcwd()) if self.settings['owner']: |