Skip to content

Commit 620cc0e

Browse files
committed
Add continue prompt
1 parent 9cc4cce commit 620cc0e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

cert-setup/install_cert.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ echo "${DOMAIN}.cert"
3737
echo "${DOMAIN}.key"
3838
echo "${DOMAIN}.ca-cert"
3939

40-
# https://docs.openshift.com/container-platform/4.15/networking/routes/secured-routes.html#nw-ingress-creating-an-edge-route-with-a-custom-certificate_secured-routes
41-
echo "Installing route"
42-
oc create route edge --service=${SERVICE} --cert=${DOMAIN}.cert --key=${DOMAIN}.key --ca-cert=${DOMAIN}.ca-cert --hostname=${DOMAIN}
40+
echo -e "\nContinue? [y/n]"
41+
read ACCEPT
42+
if [[ "${ACCEPT^}" != "Y" ]]; then
43+
echo "Exiting..."
44+
exit 1
45+
else
46+
# https://docs.openshift.com/container-platform/4.15/networking/routes/secured-routes.html#nw-ingress-creating-an-edge-route-with-a-custom-certificate_secured-routes
47+
echo "Installing route"
48+
oc create route edge --service=${SERVICE} --cert=${DOMAIN}.cert --key=${DOMAIN}.key --ca-cert=${DOMAIN}.ca-cert --hostname=${DOMAIN}
49+
fi

0 commit comments

Comments
 (0)