aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-10-05 23:41:57 +0100
committerPascal Terjan <pterjan@mageia.org>2017-10-05 23:41:57 +0100
commita97f84bc51780d05e2446d7b0ed32ce983d5de37 (patch)
tree29e8b8a673a0a3ac764750a91016ac698f6e704b /iurt_root_command
parentfc7da1fe93ffb867849de2ee5b068db43f81f594 (diff)
downloadiurt-a97f84bc51780d05e2446d7b0ed32ce983d5de37.tar
iurt-a97f84bc51780d05e2446d7b0ed32ce983d5de37.tar.gz
iurt-a97f84bc51780d05e2446d7b0ed32ce983d5de37.tar.bz2
iurt-a97f84bc51780d05e2446d7b0ed32ce983d5de37.tar.xz
iurt-a97f84bc51780d05e2446d7b0ed32ce983d5de37.zip
Fix previous broken commit0.7.2.1
This time, tested.
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command2
1 files changed, 1 insertions, 1 deletions
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`;