This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-catalog.git


The following commit(s) were added to refs/heads/master by this push:
     new 3d6d69f  add flag to optionally skip install of deprecated packages 
(#291)
3d6d69f is described below

commit 3d6d69f3e2dba96c775d4b1a4d55b1fc158b1201
Author: Jason Peterson <jason...@us.ibm.com>
AuthorDate: Fri Nov 9 12:01:05 2018 -0500

    add flag to optionally skip install of deprecated packages (#291)
---
 packages/installCatalog.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/packages/installCatalog.sh b/packages/installCatalog.sh
index f0f0fb3..cc02cc6 100755
--- a/packages/installCatalog.sh
+++ b/packages/installCatalog.sh
@@ -22,6 +22,7 @@
 
 SCRIPTDIR="$(cd $(dirname "$0")/ && pwd)"
 OPENWHISK_HOME=${OPENWHISK_HOME:-$SCRIPTDIR/../../openwhisk}
+SKIP_DEPRECATED_PACKAGES=${SKIP_DEPRECATED_PACKAGES:="false"}
 
 source "$SCRIPTDIR/validateParameter.sh" $1 $2 $3
 : ${WHISK_SYSTEM_AUTH:?"WHISK_SYSTEM_AUTH is not configured. Please input the 
correctly parameter: CATALOG_AUTH_KEY"}
@@ -32,11 +33,15 @@ source "$SCRIPTDIR/util.sh"
 
 echo Installing OpenWhisk packages
 
-runPackageInstallScript "$SCRIPTDIR" installCombinators.sh
+if [ $SKIP_DEPRECATED_PACKAGES == "false" ]; then
+    runPackageInstallScript "$SCRIPTDIR" installCombinators.sh
+fi
 runPackageInstallScript "$SCRIPTDIR" installGit.sh
 runPackageInstallScript "$SCRIPTDIR" installSlack.sh
 runPackageInstallScript "$SCRIPTDIR" installSystem.sh
-runPackageInstallScript "$SCRIPTDIR" installWatson.sh
+if [ $SKIP_DEPRECATED_PACKAGES == "false" ]; then
+    runPackageInstallScript "$SCRIPTDIR" installWatson.sh
+fi
 runPackageInstallScript "$SCRIPTDIR" installWeather.sh
 runPackageInstallScript "$SCRIPTDIR" installWebSocket.sh
 

Reply via email to