Skip to content

Commit

Permalink
Modify update script for APIM 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Savidude authored and VimukthiPerera committed Oct 29, 2019
1 parent e9e4a5c commit 41af506
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
set -e

# Build artifacts and versions
: ${version:="2.6.0"}
: ${version:="3.0.0"}
: ${packs_dir:=$(pwd)/../files/packs}

usage() { echo "Usage: $0 -p <profile_name>" 1>&2; exit 1; }
Expand Down Expand Up @@ -69,49 +69,49 @@ fi
case "${profile}" in
apim)
pack="wso2am-"${version}
updated_roles=("apim" "apim-ex-gateway" "apim-gateway" "apim-km" "apim-publisher" "apim-store" "apim-tm")
;;
apim-ex-gateway)
pack="wso2am-"${version}
updated_roles=("apim" "apim-ex-gateway" "apim-gateway" "apim-km" "apim-publisher" "apim-store" "apim-tm")
updated_roles=("apim" "apim-gateway" "apim-km" "apim-publisher" "apim-devportal" "apim-tm")
;;
apim-gateway)
pack="wso2am-"${version}
updated_roles=("apim" "apim-ex-gateway" "apim-gateway" "apim-km" "apim-publisher" "apim-store" "apim-tm")
updated_roles=("apim" "apim-gateway" "apim-km" "apim-publisher" "apim-devportal" "apim-tm")
;;
apim-km)
pack="wso2am-"${version}
updated_roles=("apim" "apim-ex-gateway" "apim-gateway" "apim-km" "apim-publisher" "apim-store" "apim-tm")
updated_roles=("apim" "apim-gateway" "apim-km" "apim-publisher" "apim-devportal" "apim-tm")
;;
apim-publisher)
pack="wso2am-"${version}
updated_roles=("apim" "apim-ex-gateway" "apim-gateway" "apim-km" "apim-publisher" "apim-store" "apim-tm")
updated_roles=("apim" "apim-gateway" "apim-km" "apim-publisher" "apim-devportal" "apim-tm")
;;
apim-store)
apim-devportal)
pack="wso2am-"${version}
updated_roles=("apim" "apim-ex-gateway" "apim-gateway" "apim-km" "apim-publisher" "apim-store" "apim-tm")
updated_roles=("apim" "apim-gateway" "apim-km" "apim-publisher" "apim-devportal" "apim-tm")
;;
apim-tm)
pack="wso2am-"${version}
updated_roles=("apim" "apim-ex-gateway" "apim-gateway" "apim-km" "apim-publisher" "apim-store" "apim-tm")
updated_roles=("apim" "apim-gateway" "apim-km" "apim-publisher" "apim-devportal" "apim-tm")
;;
apim-analytics-dashboard)
pack="wso2am-analytics-"${version}
updated_roles=("apim-analytics-dashboard")
;;
apim-analytics-worker)
pack="wso2am-analytics-"${version}
updated_roles=("apim-analytics-worker")
;;
apim-is-as-km)
pack="wso2is-km-5.7.0"
pack="wso2is-km-5.9.0"
updated_roles=("apim-is-as-km")
;;
*)
echo "Invalid profile. Please provide one of the following profiles:
apim
apim-ex-gateway
apim-gateway
apim-km
apim-publisher
apim-store
apim-devportal
apim-tm
apim-analytics-dashboard
apim-analytics-worker
apim-is-as-km"
exit 1
Expand Down
6 changes: 3 additions & 3 deletions scripts/update_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The update script is to be used by WSO2 subscription users such that products pa
* [WUM](https://wso2.com/updates/wum) updated packs should be provided in the `/files/packs` directory

`
NOTE: Provided WUM updated packs should contain the latest updates for wso2am-2.6.0 and wso2am-analytics-2.6.0
NOTE: Provided WUM updated packs should contain the latest updates for wso2am-3.0.0 and wso2am-analytics-3.0.0
`

### Usage
Expand All @@ -17,12 +17,12 @@ While executing the update script, provide the profile name. The pack correspond
```
Any of the following profile names can be provided as arguments:
* apim
* apim-ex-gateway
* apim-gateway
* apim-km
* apim-publisher
* apim-store
* apim-devportal
* apim-tm
* apim-analytics-dashboard
* apim-analytics-worker
* apim-is-as-km

Expand Down

0 comments on commit 41af506

Please sign in to comment.