From edee3c4fc2ba0c674c8a49846b74eee6c561c7b8 Mon Sep 17 00:00:00 2001 From: Dvir Naim <106969883+dvir-ms@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:29:21 +0300 Subject: [PATCH] Update sapcon-sentinel-kickstart.sh --- Solutions/SAP/sapcon-sentinel-kickstart.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Solutions/SAP/sapcon-sentinel-kickstart.sh b/Solutions/SAP/sapcon-sentinel-kickstart.sh index fc7c5dcd35b..a06cd1548c4 100755 --- a/Solutions/SAP/sapcon-sentinel-kickstart.sh +++ b/Solutions/SAP/sapcon-sentinel-kickstart.sh @@ -118,6 +118,10 @@ while [[ $# -gt 0 ]]; do SID="$2" shift 2 ;; + --hostnetwork) + HOSTNETWORK=1 + shift 1 + ;; --clientnumber) CLIENTNUMBER="$2" shift 2 @@ -787,6 +791,10 @@ cmdparams=" --label Cloud=$CLOUD" # Generating SENTINEL_AGENT_GUID cmdparams+=" -e SENTINEL_AGENT_GUID=$(uuidgen) " +if [ $HOSTNETWORK ]; then + cmdparams+=" --network host" +fi + if [ "$MODE" == "kvmi" ]; then echo "Creating docker container for use with Azure Key vault and managed VM identity" sudo docker create -v "$sysfileloc":/sapcon-app/sapcon/config/system $cmdparams $sncline $httpproxyline --name "$containername" $dockerimage$tagver >/dev/null