Fix bug 1747 to allow installation without docker proxy 15/11315/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 8 Nov 2021 22:02:01 +0000 (23:02 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 8 Nov 2021 22:02:01 +0000 (23:02 +0100)
Change-Id: I900f1acf9656ca79b96dac60aad4a99c7b1576af
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index 1202e33..e5b135e 100755 (executable)
@@ -657,7 +657,11 @@ function install_osm() {
 
     track prereqok
 
-    [ -n "$INSTALL_NODOCKER" ] || $OSM_DEVOPS/installers/install_docker_ce.sh -p $DOCKER_PROXY_URL -D $OSM_DEVOPS $DEBUG_INSTALL
+    if [ ! -n "$INSTALL_NODOCKER" ]; then
+        DOCKER_CE_OPTS="-D ${OSM_DEVOPS} ${DEBUG_INSTALL}"
+        [ -n "${DOCKER_PROXY_URL}" ] && DOCKER_CE_OPTS="${DOCKER_CE_OPTS} -p ${DOCKER_PROXY_URL}"
+        $OSM_DEVOPS/installers/install_docker_ce.sh ${DOCKER_CE_OPTS}
+    fi
 
     track docker_ce