Fix setup.sh to work when .nat_interface doesn't exist

Signed-off-by: Nahum Shalman <nshalman@equinix.com>
This commit is contained in:
Nahum Shalman 2021-04-12 16:35:08 +00:00
parent 3fc23c58eb
commit 4243501dca

View File

@ -111,6 +111,7 @@ setup_networking() (
echo "$ERR tinkerbell network interface configuration failed" echo "$ERR tinkerbell network interface configuration failed"
fi fi
NAT_INTERFACE=""
if [ -r .nat_interface ]; then if [ -r .nat_interface ]; then
NAT_INTERFACE=$(cat .nat_interface) NAT_INTERFACE=$(cat .nat_interface)
fi fi