updated certpath section to check for FILE specifically
This commit is contained in:
parent
7a6c6a9ac4
commit
4bc6ffc24c
6
setup.sh
6
setup.sh
@ -115,7 +115,7 @@ fi
|
|||||||
# not using Certbot: get location of certificate
|
# not using Certbot: get location of certificate
|
||||||
while true; do
|
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
|
||||||
'')
|
'')
|
||||||
echo -e "\n${err}You cannot have an empty path to your SSL certificate${norm}"
|
echo -e "\n${err}You cannot have an empty path to your SSL certificate${norm}"
|
||||||
;;
|
;;
|
||||||
@ -125,11 +125,11 @@ while true; do
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# validate path
|
# validate path
|
||||||
if [ -s "${inputCertPath}" ]; then
|
if [ -f "${inputCertPath}" ]; then
|
||||||
CertPath="${inputCertPath}"
|
CertPath="${inputCertPath}"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo -e "\n${warn}The file you specified doesn't exist or is empty"
|
echo -e "\n${warn}The file you specified doesn't exist"
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Do you want to use this path anyways? " yn
|
read -p "Do you want to use this path anyways? " yn
|
||||||
echo -e "${norm}"
|
echo -e "${norm}"
|
||||||
|
Loading…
Reference in New Issue
Block a user