blob: 5cf21394fdf594868b33086435b3b36531adceab [file] [log] [blame]
#/
# Copyright 2015-2016 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#/
#!/bin/bash
#
# use the command line interface to install pushnotifications package.
# this script is in blue because it need blue whisk.properties.
#
: ${WHISK_SYSTEM_AUTH:?"WHISK_SYSTEM_AUTH must be set and non-empty"}
AUTH_KEY=$WHISK_SYSTEM_AUTH
SCRIPTDIR="$(cd $(dirname "$0")/ && pwd)"
CATALOG_HOME=$SCRIPTDIR
source "$CATALOG_HOME/util.sh"
dir=pushnotifications
git clone https://github.com/openwhisk/wsk-pkg-pushnotifications.git "$dir"
if [ -f installPushpackage.sh ] ; then
rm installPushpackage.sh
fi
cp $CATALOG_HOME/pushnotifications/installPushpackage.sh $CATALOG_HOME
./installPushpackage.sh
waitForAll
echo pushnotifications package ERRORS = $ERRORS
exit $ERRORS