Update sites.inc
This commit is contained in:
@@ -692,7 +692,8 @@ SITEINFO(){
|
|||||||
else
|
else
|
||||||
ssl='Yes'
|
ssl='Yes'
|
||||||
certpath=$(grep ssl_certificate_key ${sitefile})
|
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)
|
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');
|
CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certpath}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
||||||
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
|
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
|
||||||
@@ -803,10 +804,12 @@ SITEINFO(){
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
[Cc])
|
[Cc])
|
||||||
echo -e "\n\033[K\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[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K";
|
||||||
echo -e "\033[6A"
|
# echo -e "\033[6A"
|
||||||
|
echo -e "\n\033[K\n\033[K"
|
||||||
|
SITEINFO ${1} ${2}
|
||||||
|
exit 0
|
||||||
# break 3
|
# break 3
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user