File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 28
28
echo " CLUSTERNAME is not set or empty, defaulting to ${CLUSTERNAME} "
29
29
fi
30
30
31
+ echo " Checking for compatible shell"
32
+ case " $SHELL " in
33
+ * bash* )
34
+ echo " BASH detected"
35
+ ;;
36
+ * zsh* )
37
+ echo " ZSH detected"
38
+ ;;
39
+ * )
40
+ echo " 🛑🛑 Unknown shell $SHELL , this script has only been tested on BASH and ZSH. Please be aware there may be some issues 🛑🛑"
41
+ sleep 2
42
+ ;;
43
+ esac
44
+
31
45
ACCOUNT_ID=$( aws sts get-caller-identity | jq ' .Account' -r)
32
46
echo " ACCOUNT_ID=${ACCOUNT_ID} "
33
47
@@ -128,8 +142,8 @@ helm upgrade --install mj ../helm/wrongsecrets-ctf-party \
128
142
export HELM_EXPERIMENTAL_OCI=1
129
143
kubectl create namespace ctfd
130
144
helm -n ctfd install ctfd oci://ghcr.io/bman46/ctfd/ctfd \
131
- --set=" redis.auth.password=${$ (openssl rand -base64 24)} " \
132
- --set=" mariadb.auth.rootPassword=${$ (openssl rand -base64 24)} " \
133
- --set=" mariadb.auth.password=${$ (openssl rand -base64 24)} " \
134
- --set=" mariadb.auth.replicationPassword=${$ (openssl rand -base64 24)} " \
145
+ --set=" redis.auth.password=$( openssl rand -base64 24) " \
146
+ --set=" mariadb.auth.rootPassword=$( openssl rand -base64 24) " \
147
+ --set=" mariadb.auth.password=$( openssl rand -base64 24) " \
148
+ --set=" mariadb.auth.replicationPassword=$( openssl rand -base64 24) " \
135
149
--set=" env.open.SECRET_KEY=test" # this key isn't actually necessary in a setup with CTFd
You can’t perform that action at this time.
0 commit comments