Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Fixed postgres service installation
Browse files Browse the repository at this point in the history
Separated service's name to create from service's name to save service as
  • Loading branch information
pskindel authored and Marcin Makowski committed Jan 25, 2016
1 parent 237975e commit 88d4a01
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ function install_service {
NAME=${CATALOG_RECORD[0]//,}
PLAN=${CATALOG_RECORD[1]//,}
echo $NAME $PLAN
RETURN=($(cf create-service ${NAME} ${PLAN} "my$1"))
if [ -z "$2" ];
then
RETURN=($(cf create-service ${NAME} ${PLAN} "my$1"))
else
RETURN=($(cf create-service ${NAME} ${PLAN} "my$2"))
fi
check_return
else
echo "Service my${1} already exists"
Expand Down Expand Up @@ -322,7 +327,7 @@ function create_space {
}

function deploy_services {
install_service postgres &&
install_service postgresql93 postgres &&
install_service cdh &&
install_service zookeeper-wssb &&
install_service redis &&
Expand Down

0 comments on commit 88d4a01

Please sign in to comment.