update
This commit is contained in:
@@ -267,6 +267,61 @@ LISTCERTS(){
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
|
||||
if [ ${EDIT} -eq 1 ]; then
|
||||
DIVIDER . yellow ${dl}
|
||||
function exitspacing {
|
||||
echo -e "\n\033[K\n\033[K"
|
||||
exit 0
|
||||
}
|
||||
trap exitspacing EXIT
|
||||
|
||||
while [ "${editc^}" != "E" ]; do
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K (${idsCL[Green]}R${idsCL[Default]})eload, (${idsCL[Green]}E${idsCL[Default]})xit"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[7A"
|
||||
echo -en "${idsCL[LightCyan]}Enter the cert number you want to edit: ${idsCL[Default]}"
|
||||
read certid
|
||||
echo
|
||||
|
||||
if [ "${certid^}" == "E" ]; then
|
||||
echo -e "\033[K"
|
||||
exit 0
|
||||
|
||||
elif [ "${certid^}" == "R" ]; then
|
||||
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
|
||||
exit 0
|
||||
|
||||
elif [ "${CERTLIST[${siteid}]}" != "" ]; then
|
||||
until [ "${editc^}" = "C" ]; do
|
||||
echo -e "\033[K${idsCL[White]} Expires: ${idsCL[Cyan]}${idsST[Bold]}${ssl}${idsST[Reset]}"
|
||||
echo -e "\033[K${idsCL[White]} Cert Common Name: ${idsCL[Cyan]}${idsST[Bold]}${servernames}${idsST[Reset]}"
|
||||
echo -e "\033[K${idsCL[White]}1) Cert Alt. Names: ${idsCL[Cyan]}${idsST[Bold]}${type}${idsST[Reset]}"
|
||||
echo -e "\033[K${idsCL[White]}2) Monitored: ${idsCL[Cyan]}${idsST[Bold]}${hsts}${idsST[Reset]}"
|
||||
if [ "${editc}" != "s" ]; then
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K (${idsCL[Green]}S${idsCL[Default]})ave, (${idsCL[Red]}D${idsCL[Default]})elete, (${idsCL[Red]}C${idsCL[Default]})ancel, (${idsCL[Green]}E${idsCL[Default]})xit"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[7A"
|
||||
|
||||
echo -en "\033[K\n\033[K\r${idsCL[LightCyan]}Enter the item number to edit: ${idsCL[Default]}"
|
||||
read -n 1 edit
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
|
||||
echo
|
||||
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
||||
|
||||
Reference in New Issue
Block a user