Fix create-demo-cluster for Makefile on ubuntu.
Using make syntax for if condition checking other than rely on
shell syntax. This make it more portable.
Author: Ashwin Agrawal
Author: Xin Zhang
@@ -38,11 +38,11 @@ all:
cluster create-demo-cluster:
ifeq ($(enable_segwalrep), yes)
@WITH_MIRRORS=false ./demo_cluster.sh # will generate gpdemo-env.sh
- @if [[ $(WITH_MIRRORS) == true ]]; then \
- . ./gpdemo-env.sh; \
+ifeq ($(WITH_MIRRORS), true)
+ @. ./gpdemo-env.sh; \
./gpsegwalrep.py init --host `hostname`; \
- ./gpsegwalrep.py start; \
- fi
+ ./gpsegwalrep.py start;
+endif
@echo ""
else
@./demo_cluster.sh
