update
This commit is contained in:
@@ -715,7 +715,7 @@ SITEINFO(){
|
||||
lock='2FA'
|
||||
fi
|
||||
else
|
||||
lock='-'
|
||||
lock=''
|
||||
fi
|
||||
|
||||
|
||||
@@ -763,13 +763,14 @@ SITEINFO(){
|
||||
elif [ "${SITELIST[${siteid}]}" != "" ]; then
|
||||
site=${SITELIST[${siteid}]}
|
||||
sitefile=${gosite}/${site}.conf
|
||||
if [ "$(grep \#ssl_certificate ${sitefile})" != "" ]; then
|
||||
siteconfig=$(cat ${sitefile})
|
||||
if [ "$(echo "${siteconfig}" | grep \#ssl_certificate)" != "" ]; then
|
||||
ssl='-'
|
||||
SUBJECTNAMES=""
|
||||
else
|
||||
ssl='Yes'
|
||||
|
||||
certpath=$(grep ssl_certificate_key ${sitefile})
|
||||
certpath=$(echo "${siteconfig}" | grep ssl_certificate_key)
|
||||
certpath=${certpath%/*}
|
||||
certpath=${certpath#* }
|
||||
SUBJECTNAMES=$(openssl x509 -in ${certpath}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||
|
||||
Reference in New Issue
Block a user