Update sites.inc

This commit is contained in:
2023-07-20 21:14:13 -05:00
parent 2835a63ee7
commit f84499bf63

View File

@@ -135,41 +135,41 @@ DELSITES(){
echo echo
echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} " echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} "
# read selsite # read selsite
echo # echo
if [ -z ${SITES[$selsite]} ] && [ "${selsite}" != "Q" ] && [ "${selsite}" != "q" ] && [ "${selsite}" != "B" ] && [ "${selsite}" != "b" ]; then # if [ -z ${SITES[$selsite]} ] && [ "${selsite}" != "Q" ] && [ "${selsite}" != "q" ] && [ "${selsite}" != "B" ] && [ "${selsite}" != "b" ]; then
echo "Thats an invaild option," # echo "Thats an invaild option,"
echo "please select a valid option only." # echo "please select a valid option only."
sleep 1 # sleep 1
DELSITES # DELSITES
exit 0 # exit 0
elif [ "${selsite}" = "Q" ] || [ "${selsite}" = "q" ]; then # elif [ "${selsite}" = "Q" ] || [ "${selsite}" = "q" ]; then
exit 0 # exit 0
elif [ "${selsite}" = "B" ] || [ "${selsite}" = "b" ]; then # elif [ "${selsite}" = "B" ] || [ "${selsite}" = "b" ]; then
GUI # GUI
else # else
while : # while :
do # do
echo -e -n "${idsCL[LightRed]}Are you sure you want to delete '${idsCL[Red]}${SITES[${selsite}]^^}${idsCL[LightRed]}'? [y/N]${idsCL[Default]} " # echo -e -n "${idsCL[LightRed]}Are you sure you want to delete '${idsCL[Red]}${SITES[${selsite}]^^}${idsCL[LightRed]}'? [y/N]${idsCL[Default]} "
read response # read response
echo # echo
if [[ $response =~ ^[Yy]$ ]]; then # if [[ $response =~ ^[Yy]$ ]]; then
echo -e -n "${idsCL[LightRed]}Do you also want to delete the certs for '${idsCL[Red]}${SITES[${selsite}]^^}${idsCL[LightRed]}', if they exist? [y/N]${idsCL[Default]} " # echo -e -n "${idsCL[LightRed]}Do you also want to delete the certs for '${idsCL[Red]}${SITES[${selsite}]^^}${idsCL[LightRed]}', if they exist? [y/N]${idsCL[Default]} "
read sslresponse # read sslresponse
DELSITE -site ${SITES[${selsite}]} -ssl ${sslresponse} # DELSITE -site ${SITES[${selsite}]} -ssl ${sslresponse}
echo # echo
DIVIDER # DIVIDER
ENTER2CONTINUE # ENTER2CONTINUE
break # break
else # else
break # break
fi # fi
done # done
DELSITES # DELSITES
exit 0 # exit 0
fi # fi
if [ -z $action ] || [ "${action}" = "gui" ]; then # if [ -z $action ] || [ "${action}" = "gui" ]; then
ENTER2CONTINUE # ENTER2CONTINUE
fi # fi
} }
NEWSITE(){ NEWSITE(){