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"