skip manual cert and key path prompting if using Certbot
This commit is contained in:
parent
f0008b1d71
commit
c93d5ac9c5
22
setup.sh
22
setup.sh
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user