mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-12-22 23:47:00 +01:00
pretty up ssl parameter entry
This commit is contained in:
parent
c6ca267cfd
commit
651995f9b4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user