-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.sh
executable file
·32 lines (20 loc) · 890 Bytes
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#./mxpc-cli installer -n MENDIX_NAMESPACE -i cd8e6dbf-3b99-45c4-a19a-decb18e2fc15 -s IGi500iXm75bdPvF
#./mxpc-cli installer -n $MENDIX_NAMESPACE -i 9ae2c9e0-0544-4d6b-a221-d8ce25bdfc15 -s UVGmXR8r4454vVW9
defaultMode="connected"
mode=$defaultMode
mode=$(get-mode.sh $1)
echo "Mode is $mode"
. ./generate-yamls.sh
. ./install-mxpc-cli.sh
if [[ $mode == $defaultMode ]];
then
echo "base install "
mxpc-cli base-install --namespace $MENDIX_NAMESPACE -i $MENDIX_CONFIG_IVAL -s $MENDIX_CONFIG_SVAL --clusterMode connected --clusterType generic
echo "apply config"
mxpc-cli apply-config -i $MENDIX_CONFIG_IVAL -s $MENDIX_CONFIG_SVAL --file configure.yaml
else
echo "base install "
mxpc-cli base-install --namespace $MENDIX_NAMESPACE --clusterMode standalone --clusterType generic
echo "apply config"
mxpc-cli apply-config --file configure-standalone.yaml
fi