skip manual cert and key path prompting if using Certbot

This commit is contained in:
Asif Bacchus 2019-01-04 23:25:53 -07:00
parent f0008b1d71
commit c93d5ac9c5

View File

@ -113,8 +113,10 @@ if [ "${useCertbot}" -eq 1 ]; then
done
fi
# not using Certbot: get location of certificate
while true; do
# only process manual certificate paths if NOT using Certbot
if [ "${useCertbot}" -eq 0 ]; then
# not using Certbot: get location of certificate
while true; do
read -p "What is the path to your primary SSL certificate? " inputCertPath
case "${inputCertPath}" in
'')
@ -151,10 +153,10 @@ while true; do
fi
;;
esac
done
done
# not using Certbot: get location of private key
while true; do
# not using Certbot: get location of private key
while true; do
read -p "What is the path to your primary SSL private key? " inputKeyPath
case "${inputKeyPath}" in
'')
@ -191,10 +193,10 @@ while true; do
fi
;;
esac
done
done
# dhparam: get location of DH Parameters file
while true; do
# dhparam: get location of DH Parameters file
while true; do
read -p "What is the path to your DH Parameters file? (default: /etc/ssl/certs/dhparam.pem) " inputDHPath
case "${inputDHPath}" in
'')
@ -255,8 +257,8 @@ while true; do
fi
;;
esac
done
done
fi
# debug section
echo "Local IP4: $IP4"