[UCA-10] Fix issue with MTU size in dockers
[demo.git] / boot / policy_vm_init.sh
index 2514467..067ab1d 100644 (file)
@@ -4,7 +4,7 @@ NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
 NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
 NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
 DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
-
+export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
 export DOCKER_REPOSITORY=${NEXUS_DOCKER_REPO}
 
 cd /opt/policy