From 4f52e19acd181e8d2e22b983706bfa87e36ec66f Mon Sep 17 00:00:00 2001 From: John Blum Date: Mon, 22 Apr 2019 23:40:52 -0700 Subject: [PATCH] Add setenv.gfsh Gfsh shell script to setup the system environment to run the example app. --- .../configuration/src/main/resources/geode/bin/setenv.gfsh | 4 ++++ .../src/main/resources/geode/bin/start-simple-cluster.sh | 2 +- .../src/main/resources/geode/bin/stop-cluster.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 spring-geode-samples/boot/configuration/src/main/resources/geode/bin/setenv.gfsh diff --git a/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/setenv.gfsh b/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/setenv.gfsh new file mode 100644 index 00000000..d50bbc6f --- /dev/null +++ b/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/setenv.gfsh @@ -0,0 +1,4 @@ +# Gfsh shell script to set the environment + +set variable --name=SBDG_HOME --value=/Users/jblum/pivdev/spring-boot-data-geode +echo --string=${SBDG_HOME} diff --git a/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/start-simple-cluster.sh b/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/start-simple-cluster.sh index 901540e0..0226ada9 100644 --- a/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/start-simple-cluster.sh +++ b/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/start-simple-cluster.sh @@ -1,3 +1,3 @@ #!/bin/bash -gfsh -e "run --file=/Users/jblum/pivdev/spring-boot-data-geode/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/start-simple-cluster.gfsh" +gfsh -e "run --file=${SBDG_HOME}/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/start-simple-cluster.gfsh" diff --git a/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/stop-cluster.sh b/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/stop-cluster.sh index 1611dafe..9fdf3d3a 100644 --- a/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/stop-cluster.sh +++ b/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/stop-cluster.sh @@ -1,3 +1,3 @@ #!/bin/bash -gfsh -e "run --file=/Users/jblum/pivdev/spring-boot-data-geode/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/stop-cluster.gfsh" +gfsh -e "run --file=${SBDG_HOME}/spring-geode-samples/boot/configuration/src/main/resources/geode/bin/stop-cluster.gfsh"