Skip to content

Commit 94f89f9

Browse files
authored
Update install/uninstall scripts (#3044)
also, configure helm to wait for ingress-controller
1 parent c6a27b9 commit 94f89f9

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

deploy/scripts/install-combine.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! /usr/bin/env bash
2+
set -eo pipefail
23

34
# Set the environment variables that are required by The Combine.
45
# In addition, the values are stored in a file so that they do not
@@ -8,13 +9,6 @@ set-combine-env () {
89
# Generate JWT Secret Key
910
COMBINE_JWT_SECRET_KEY=`LC_ALL=C tr -dc 'A-Za-z0-9*\-_@!' </dev/urandom | head -c 64; echo`
1011
# Collect values from user
11-
cat << .EOM
12-
13-
The installation process will setup an initial user as a site
14-
administrator. This you can select a username that you will use
15-
for your normal word collection work. The default username is admin.
16-
17-
.EOM
1812
read -p "Enter AWS_ACCESS_KEY_ID: " AWS_ACCESS_KEY_ID
1913
read -p "Enter AWS_SECRET_ACCESS_KEY: " AWS_SECRET_ACCESS_KEY
2014
# write collected values and static values to config file
@@ -203,11 +197,11 @@ if [ -z "${COMBINE_VERSION}" ] ; then
203197
exit 1
204198
fi
205199

200+
create-python-venv
206201
# Step through the installation stages
207202
while [ "$STATE" != "Done" ] ; do
208203
case $STATE in
209204
Pre-reqs)
210-
create-python-venv
211205
install-kubernetes
212206
next-state "Restart"
213207
;;

deploy/scripts/setup_files/cluster_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ nginx-ingress-controller:
3030
name: ingress-controller
3131
reference: ingress-nginx/ingress-nginx
3232
namespace: ingress-nginx
33-
wait: false
33+
wait: true
3434

3535
rancher-ui:
3636
repo:

deploy/scripts/uninstall-combine

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! /usr/bin/env bash
2+
set -euo pipefail
23

34
delete-files () {
45
for file in "$@" ; do

0 commit comments

Comments
 (0)