From 763734c4d961b06b45f0de2d2247bd2c632c3176 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Fri, 18 Jan 2019 12:28:08 -0800 Subject: Update install-feature for pre-install Since the feature zip files will be extracted during docker build, the install-features scripts need to be modified so that the script will not fail when the zip file does not exist, since the zip file will have already been unzipped. Change-Id: I441064226db956addae5c2f238114ce3965c13ef Signed-off-by: Patrick Brady Issue-ID: APPC-1337 --- .../installer/resources/scripts/install-feature.sh | 4 +--- .../installer/src/main/resources/scripts/install-feature.sh | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'appc-inbound/appc-design-services/installer') diff --git a/appc-inbound/appc-design-services/installer/resources/scripts/install-feature.sh b/appc-inbound/appc-design-services/installer/resources/scripts/install-feature.sh index 921b91947..0e5496c54 100755 --- a/appc-inbound/appc-design-services/installer/resources/scripts/install-feature.sh +++ b/appc-inbound/appc-design-services/installer/resources/scripts/install-feature.sh @@ -30,9 +30,7 @@ REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip if [ -f ${REPOZIP} ] then unzip -n -d ${ODL_HOME} ${REPOZIP} -else - echo "ERROR : repo zip ($REPOZIP) not found" - exit 1 + fi ${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} diff --git a/appc-inbound/appc-design-services/installer/src/main/resources/scripts/install-feature.sh b/appc-inbound/appc-design-services/installer/src/main/resources/scripts/install-feature.sh index fff75e1c1..6402f6c32 100755 --- a/appc-inbound/appc-design-services/installer/src/main/resources/scripts/install-feature.sh +++ b/appc-inbound/appc-design-services/installer/src/main/resources/scripts/install-feature.sh @@ -33,9 +33,7 @@ REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip if [ -f ${REPOZIP} ] then unzip -n -d ${ODL_HOME} ${REPOZIP} -else - echo "ERROR : repo zip ($REPOZIP) not found" - exit 1 + fi ${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} -- cgit 1.2.3-korg