mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-22 01:27:29 +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
|
fi
|
||||||
|
|
||||||
# ask for required parameters (ssh settings and build server FQDN)
|
# ask for required parameters (ssh settings and build server FQDN)
|
||||||
|
echo "Please enter the following details for generating your SSL keys"
|
||||||
while true ; do
|
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
|
if [ ${#COUNTRY_CODE} -ne 2 ] ; then
|
||||||
echo "You must enter a 2 character country code"
|
echo "You must enter a 2 character country code"
|
||||||
else
|
else
|
||||||
@ -49,19 +50,19 @@ while true ; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
while true ; do
|
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
|
if [ $STATE ] ; then break ; else echo "State MUST be entered" ; fi
|
||||||
done
|
done
|
||||||
while true ; do
|
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
|
if [ $LOCATION ] ; then break ; else echo "City MUST be entered" ; fi
|
||||||
done
|
done
|
||||||
while true ; do
|
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
|
if [ $ORGANIZATION ] ; then break ; else echo "Organization MUST be entered" ; fi
|
||||||
done
|
done
|
||||||
while true ; do
|
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
|
if [ $ORG_UNIT ] ; then break ; else echo "Organizational Unit MUST be entered" ; fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user