Update sites.inc

This commit is contained in:
2023-05-25 19:01:38 -05:00
parent ba8f63ccc8
commit eff679ea52

View File

@@ -541,17 +541,25 @@ SITEINFO(){
fi
site=${SITELIST[${siteid}]}
sitefile=${!gosite}/${site}.conf
[ "$(grep ssl_certificate ${sitefile})" != "" ] && ssl='Yes' || ssl='-'
echo $sitefile
if [ "$(grep ssl_certificate ${sitefile})" != "" ]; then
ssl='Yes'
else
ssl='-'
fi
[ "$(grep include/hsts-support.conf ${sitefile})" != "" ] && hsts='Yes' || hsts='-'
[ "$(grep include/websocket-support.conf ${sitefile})" != "" ] && wbskt='Yes' || wbskt='-'
[ "$(grep include/secure-access.conf ${sitefile})" != "" ] && lock='Yes' || lock='-'
echo -e "${idsCL[Cyan]}Site: ${idsST[Bold]}${site}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}SSL: ${idsST[Bold]}${ssl}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}HSTS ${idsST[Bold]}${hsts}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}WbSkt: ${idsST[Bold]}${wbskt}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}Lock: ${idsST[Bold]}${lock}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}!) Site: ${idsST[Bold]}${site}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}!) SSL: ${idsST[Bold]}${ssl}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}3) HSTS ${idsST[Bold]}${hsts}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}4) WbSkt: ${idsST[Bold]}${wbskt}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${idsCL[Cyan]}5) Lock: ${idsST[Bold]}${lock}${idsST[Reset]}${idsCL[LightCyan]}"
echo -en "\n${idsCL[LightCyan]}Enter the line number to edit: ${idsCL[Default]}"
read edit
echo
fi