Fix sxp boot features replacement 48/62448/1
authorMichal Rehak <mirehak@cisco.com>
Wed, 30 Aug 2017 13:57:34 +0000 (15:57 +0200)
committerMichal Rehak <mirehak@cisco.com>
Wed, 30 Aug 2017 13:57:42 +0000 (15:57 +0200)
    - bootFeatures can now contain spaces + multiline
    - fixed sed command to cover this new default
      org.apache.karaf.features.cfg file

Change-Id: I2427485cf98462c50415a2ea7001ed8e8127887f
Signed-off-by: Michal Rehak <mirehak@cisco.com>
csit/suites/sxp/scripts/tools_node_setup.sh

index 18883a7d75dea911cd7b19460e5d15deee35ac1e..1b3e302608b15d22de574bfbb9aa85ddaaeadfe0 100755 (executable)
@@ -21,7 +21,7 @@ fi
 
 echo "Configuring the startup features..."
 TOOLS_FEATURESCONF=${TOOLS_WORK_DIR}/${BUNDLEFOLDER}/etc/org.apache.karaf.features.cfg
-ssh ${TOOLS_SYSTEM_IP} "sed -ie \"s/featuresBoot=.*/featuresBoot=config,standard,region,package,kar,ssh,management,${ACTUALFEATURES}/g\" ${TOOLS_FEATURESCONF}"
+ssh ${TOOLS_SYSTEM_IP} "sed -r -i.old \"s/featuresBoot ?=.*/featuresBoot=config,standard,region,package,kar,ssh,management,${ACTUALFEATURES}/g\" ${TOOLS_FEATURESCONF}"
 
 echo "Starting controller..."
 ssh ${TOOLS_SYSTEM_IP} "${TOOLS_WORK_DIR}/${BUNDLEFOLDER}/bin/start"