Skip to content

Commit

Permalink
FIX: Try to run on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred78290 committed Aug 16, 2024
1 parent 1b3c623 commit d7bf083
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ write_files:
EOF
fi

gzip -c9 <${TARGET_CONFIG_LOCATION}/vendordata.yaml | base64 -w 0 | tee > ${TARGET_CONFIG_LOCATION}/vendordata.base64
VENDORDATA=$(cat ${TARGET_CONFIG_LOCATION}/vendordata.yaml | gzip -c9 | base64 -w 0 | tee > ${TARGET_CONFIG_LOCATION}/vendordata.base64)
}

#===========================================================================================================================================
Expand All @@ -1986,6 +1986,10 @@ EOF
function prepare_routes() {
plateform_prepare_routes

if [ ${OSDISTRO} == Darwin ]; then
set +u
fi

# Add default gateway
if [ -n "${PRIVATE_GATEWAY}" ] && [ "${PRIVATE_GATEWAY}" != "NONE" ] && [ "${PRIVATE_GATEWAY}" != "DHCP" ]; then
NETWORK_PRIVATE_ROUTES=("to=default,via=${PRIVATE_GATEWAY},metric=${PRIVATE_GATEWAY_METRIC}" ${NETWORK_PRIVATE_ROUTES[@]})
Expand All @@ -2007,6 +2011,10 @@ function prepare_routes() {
else
PRIVATE_ROUTES_DEFS='[]'
fi

if [ ${OSDISTRO} == Darwin ]; then
set -u
fi
}

#===========================================================================================================================================
Expand Down

0 comments on commit d7bf083

Please sign in to comment.