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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# not using Certbot: get location of certificate
|
# only process manual certificate paths if NOT using Certbot
|
||||||
while true; do
|
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
|
read -p "What is the path to your primary SSL certificate? " inputCertPath
|
||||||
case "${inputCertPath}" in
|
case "${inputCertPath}" in
|
||||||
'')
|
'')
|
||||||
@ -151,10 +153,10 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# not using Certbot: get location of private key
|
# not using Certbot: get location of private key
|
||||||
while true; do
|
while true; do
|
||||||
read -p "What is the path to your primary SSL private key? " inputKeyPath
|
read -p "What is the path to your primary SSL private key? " inputKeyPath
|
||||||
case "${inputKeyPath}" in
|
case "${inputKeyPath}" in
|
||||||
'')
|
'')
|
||||||
@ -191,10 +193,10 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# dhparam: get location of DH Parameters file
|
# dhparam: get location of DH Parameters file
|
||||||
while true; do
|
while true; do
|
||||||
read -p "What is the path to your DH Parameters file? (default: /etc/ssl/certs/dhparam.pem) " inputDHPath
|
read -p "What is the path to your DH Parameters file? (default: /etc/ssl/certs/dhparam.pem) " inputDHPath
|
||||||
case "${inputDHPath}" in
|
case "${inputDHPath}" in
|
||||||
'')
|
'')
|
||||||
@ -255,8 +257,8 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# debug section
|
# debug section
|
||||||
echo "Local IP4: $IP4"
|
echo "Local IP4: $IP4"
|
||||||
|
Loading…
Reference in New Issue
Block a user