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