From 1a5d81c145df36c1752582ab4cad9175383d849e Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sun, 13 Sep 2015 16:33:39 +0100 Subject: fix typo and append to existing interfaces file --- bin/vmdebootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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): -- cgit v1.2.1