From a97f84bc51780d05e2446d7b0ed32ce983d5de37 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 5 Oct 2017 23:41:57 +0100 Subject: Fix previous broken commit This time, tested. --- iurt_root_command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iurt_root_command') diff --git a/iurt_root_command b/iurt_root_command index 5478df7..864e94f 100755 --- a/iurt_root_command +++ b/iurt_root_command @@ -420,7 +420,7 @@ sub netns_create { system("ip", "netns", "add", $nsname) and return; system("ip", "netns", "exec", $nsname, "ifconfig", "lo", "up"); # We don't configure a DNS server so make sure one is not excepted - system("sed -i |^hosts:|hosts: files| $dest/etc/nsswitch.conf"); + system("sed -i 's|^hosts:|hosts: files|' $dest/etc/nsswitch.conf"); # Some packages want a default route system("ip", "netns", "exec", $nsname, "ip", "route", "add", "0.0.0.0/0", "dev", "lo"); my $hostname = `hostname`; -- cgit v1.2.1