diff options
author | Neil Williams <codehelp@debian.org> | 2015-09-13 16:33:39 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-09-13 16:35:04 +0100 |
commit | 1a5d81c145df36c1752582ab4cad9175383d849e (patch) | |
tree | af92c51742321f385fa6018f06b1dd42f9d82eb8 /bin | |
parent | 2d2b836cfd79136f2e26155225d69b5c49d24c4b (diff) | |
download | vmdebootstrap-1a5d81c145df36c1752582ab4cad9175383d849e.tar.gz |
fix typo and append to existing interfaces file
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vmdebootstrap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap index 231472f..c2885a4 100755 --- a/bin/vmdebootstrap +++ b/bin/vmdebootstrap @@ -512,7 +512,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth with open(ifc_file, 'w') as netfile: netfile.write('source /etc/network/interfaces.d/*\n') elif not os.path.exists(ifc_file): - with open(iface_path, 'w') as netfile: + with open(ifc_file, 'a') as netfile: netfile.write('source-directory /etc/network/interfaces.d\n') if not os.path.exists(ifc_d): |