full_install_osm.sh: escaping spaces in OSMLCM_VCA_PUBKEY 46/7646/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 11 Jun 2019 15:47:14 +0000 (17:47 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 11 Jun 2019 15:47:34 +0000 (17:47 +0200)
Change-Id: Iee1ed292fe24e7c68490579670c879c65cb658d4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index 40cbfda..193726f 100755 (executable)
@@ -773,9 +773,9 @@ function generate_docker_env_files() {
     fi
 
     if ! grep -Fq "OSMLCM_VCA_PUBKEY" $OSM_DOCKER_WORK_DIR/lcm.env; then
-        echo "OSMLCM_VCA_PUBKEY=${OSM_VCA_PUBKEY}" | $WORKDIR_SUDO tee -a $OSM_DOCKER_WORK_DIR/lcm.env
+        echo "OSMLCM_VCA_PUBKEY=\"${OSM_VCA_PUBKEY}\"" | $WORKDIR_SUDO tee -a $OSM_DOCKER_WORK_DIR/lcm.env
     else
-        $WORKDIR_SUDO sed -i "s|OSMLCM_VCA_PUBKEY.*|OSMLCM_VCA_PUBKEY=$OSM_VCA_PUBKEY|g" $OSM_DOCKER_WORK_DIR/lcm.env
+        $WORKDIR_SUDO sed -i "s|OSMLCM_VCA_PUBKEY.*|OSMLCM_VCA_PUBKEY=\"${OSM_VCA_PUBKEY}\"|g" $OSM_DOCKER_WORK_DIR/lcm.env
     fi
 
     # RO