servo: net: actually assert that ovpns exists if we fail to add it

This commit is contained in:
Colin 2024-03-26 11:13:10 +00:00
parent 1d494513a9
commit c6a1f310a0
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ in
}
];
preSetup = ''
${ip} netns add ovpns || echo "ovpns already exists"
${ip} netns add ovpns || (test -e /run/netns/ovpns && echo "ovpns already exists")
'';
postShutdown = ''
${in-ns} ip link del ovpns-veth-b || echo "couldn't delete ovpns-veth-b"