Update sites.inc

This commit is contained in:
2023-05-25 18:54:59 -05:00
parent 07f1527fe1
commit 9da50835e3

View File

@@ -535,6 +535,7 @@ SITEINFO(){
if [ "${2}" == "" ]; then
echo -en "\n${idsCL[LightCyan]}Enter the site number you want to edit: ${idsCL[Default]}"
read siteid
echo
else
siteid=${2}
fi
@@ -545,9 +546,12 @@ SITEINFO(){
[ "$(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
echo -e "${idsCL[Cyan]}Site: ${idsST[Bold]}${site}${idsST[Reset]}${idsCL[LightCyan]}"
echo -e "${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]}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]}"
fi