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
1 changed files with 1 additions and 0 deletions

View File

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