diff --git a/inc/sites.inc b/inc/sites.inc index b0a3c30f..15c1d26e 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -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