diff --git a/Solutions/SAP/sapcon-sentinel-kickstart.sh b/Solutions/SAP/sapcon-sentinel-kickstart.sh index fc7c5dcd35b..64852cce9c6 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 @@ -265,6 +269,7 @@ while [[ $# -gt 0 ]]; do echo "--abapserver " echo "--systemnr " echo "--sid " + echo "--hostnetwork" echo "--clientnumber " echo "--messageserverhost " echo "--messageserverport " @@ -787,6 +792,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