Update sites.inc
This commit is contained in:
@@ -541,17 +541,25 @@ SITEINFO(){
|
|||||||
fi
|
fi
|
||||||
site=${SITELIST[${siteid}]}
|
site=${SITELIST[${siteid}]}
|
||||||
sitefile=${!gosite}/${site}.conf
|
sitefile=${!gosite}/${site}.conf
|
||||||
|
echo $sitefile
|
||||||
[ "$(grep ssl_certificate ${sitefile})" != "" ] && ssl='Yes' || ssl='-'
|
if [ "$(grep ssl_certificate ${sitefile})" != "" ]; then
|
||||||
|
ssl='Yes'
|
||||||
|
|
||||||
|
else
|
||||||
|
ssl='-'
|
||||||
|
fi
|
||||||
[ "$(grep include/hsts-support.conf ${sitefile})" != "" ] && hsts='Yes' || hsts='-'
|
[ "$(grep include/hsts-support.conf ${sitefile})" != "" ] && hsts='Yes' || hsts='-'
|
||||||
[ "$(grep include/websocket-support.conf ${sitefile})" != "" ] && wbskt='Yes' || wbskt='-'
|
[ "$(grep include/websocket-support.conf ${sitefile})" != "" ] && wbskt='Yes' || wbskt='-'
|
||||||
[ "$(grep include/secure-access.conf ${sitefile})" != "" ] && lock='Yes' || lock='-'
|
[ "$(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]}!) Site: ${idsST[Bold]}${site}${idsST[Reset]}${idsCL[LightCyan]}"
|
||||||
echo -e "${idsCL[Cyan]}SSL: ${idsST[Bold]}${ssl}${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]}3) HSTS ${idsST[Bold]}${hsts}${idsST[Reset]}${idsCL[LightCyan]}"
|
||||||
echo -e "${idsCL[Cyan]}WbSkt: ${idsST[Bold]}${wbskt}${idsST[Reset]}${idsCL[LightCyan]}"
|
echo -e "${idsCL[Cyan]}4) WbSkt: ${idsST[Bold]}${wbskt}${idsST[Reset]}${idsCL[LightCyan]}"
|
||||||
echo -e "${idsCL[Cyan]}Lock: ${idsST[Bold]}${lock}${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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user