From 651995f9b4968e03e3dd4151b965dd659d2d1e1b Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Mon, 4 Sep 2023 21:50:21 +1000 Subject: [PATCH] pretty up ssl parameter entry --- install-koji-farm.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install-koji-farm.sh b/install-koji-farm.sh index fe42140..a8e16a1 100644 --- a/install-koji-farm.sh +++ b/install-koji-farm.sh @@ -40,8 +40,9 @@ if [[ -z $(dnf list installed | grep netcat) ]] ; then fi # ask for required parameters (ssh settings and build server FQDN) +echo "Please enter the following details for generating your SSL keys" while true ; do - read -p "Country Code (eg, US) " COUNTRY_CODE + read -p "Country Code (eg, US): " COUNTRY_CODE if [ ${#COUNTRY_CODE} -ne 2 ] ; then echo "You must enter a 2 character country code" else @@ -49,19 +50,19 @@ while true ; do fi done while true ; do - read -p "State (eg. Ohio) " STATE + read -p "State/Region (eg. Ohio): " STATE if [ $STATE ] ; then break ; else echo "State MUST be entered" ; fi done while true ; do - read -p "City (eg. Columbus) " LOCATION + read -p "City/Location (eg. Columbus): " LOCATION if [ $LOCATION ] ; then break ; else echo "City MUST be entered" ; fi done while true ; do - read -p "Organisation (eg. Koozali) " ORGANIZATION + read -p "Organisation (eg. Koozali): " ORGANIZATION if [ $ORGANIZATION ] ; then break ; else echo "Organization MUST be entered" ; fi done while true ; do - read -p "Org Unit (eg. Koji) " ORG_UNIT + read -p "Org Unit (eg. Koji): " ORG_UNIT if [ $ORG_UNIT ] ; then break ; else echo "Organizational Unit MUST be entered" ; fi done