Update sites.inc

This commit is contained in:
2023-11-12 10:40:04 -06:00
parent c8702312f3
commit ee204cd94e

View File

@@ -692,7 +692,8 @@ SITEINFO(){
else
ssl='Yes'
certpath=$(grep ssl_certificate_key ${sitefile})
certpath=${certpath%/*}; certpath=${certpath#* }
certpath=${certpath%/*}
certpath=${certpath#* }
SUBJECTNAMES=$(openssl x509 -in ${certpath}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certpath}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
@@ -803,10 +804,12 @@ SITEINFO(){
exit 0
;;
[Cc])
echo -e "\n\033[K\033[6A";
echo -e "\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K";
echo -e "\033[6A"
# echo -e "\n\033[K\033[6A";
# echo -e "\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K";
# echo -e "\033[6A"
echo -e "\n\033[K\n\033[K"
SITEINFO ${1} ${2}
exit 0
# break 3
;;
*) ;;