diff --git a/inc/sites.inc b/inc/sites.inc index 641bfb98..a25d8e0b 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -568,20 +568,25 @@ SITEINFO(){ [ "$(grep include/websocket-support.conf ${sitefile})" != "" ] && wbskt='Yes' || wbskt='-' [ "$(grep include/secure-access.conf ${sitefile})" != "" ] && lock='Yes' || lock='-' - echo -e "${idsCL[Cyan]}!) Site Address: ${idsST[Bold]}${site}${idsST[Reset]}" - echo -e "${idsCL[Cyan]}!) Site Type: ${idsST[Bold]}${type}${idsST[Reset]}" - echo -e "${idsCL[Cyan]}!) SSL Secure: ${idsST[Bold]}${ssl}${idsST[Reset]} - ${idsCL[LightCyan]}${SUBJECTNAMES}" - echo -e "${idsCL[Cyan]}4) HSTS Enabled ${idsST[Bold]}${hsts}${idsST[Reset]}" - echo -e "${idsCL[Cyan]}5) Web Sockets: ${idsST[Bold]}${wbskt}${idsST[Reset]}" - echo -e "${idsCL[Cyan]}6) Secured: ${idsST[Bold]}${lock}${idsST[Reset]}" - if [ "${type}" == "Proxy" ]; then - echo -e "${idsCL[Cyan]}7) Proxy Server: ${idsST[Bold]}${server}${idsST[Reset]}" - echo -e "${idsCL[Cyan]}8) Proxy Port: ${idsST[Bold]}${port}${idsST[Reset]}" - fi - echo -en "\n${idsCL[LightCyan]}Enter the line number to edit: ${idsCL[Default]}" - read edit + until [ "${edit}" = "s" ]; do + echo -e "${idsCL[Cyan]}!) Site Address: ${idsST[Bold]}${site}${idsST[Reset]}" + echo -e "${idsCL[Cyan]}!) Site Type: ${idsST[Bold]}${type}${idsST[Reset]}" + echo -e "${idsCL[Cyan]}!) SSL Secure: ${idsST[Bold]}${ssl}${idsST[Reset]} - ${idsCL[LightCyan]}${SUBJECTNAMES}" + echo -e "${idsCL[Cyan]}4) HSTS Enabled ${idsST[Bold]}${hsts}${idsST[Reset]}" + echo -e "${idsCL[Cyan]}5) Web Sockets: ${idsST[Bold]}${wbskt}${idsST[Reset]}" + echo -e "${idsCL[Cyan]}6) Secured: ${idsST[Bold]}${lock}${idsST[Reset]}" + if [ "${type}" == "Proxy" ]; then + echo -e "${idsCL[Cyan]}7) Proxy Server: ${idsST[Bold]}${server}${idsST[Reset]}" + echo -e "${idsCL[Cyan]}8) Proxy Port: ${idsST[Bold]}${port}${idsST[Reset]}" + fi + echo -en "\n${idsCL[LightCyan]}Enter the line number to edit, or (s) to save: ${idsCL[Default]}" + read edit + + echo -e "\r\r\r\r\r\r\r\r\r\r" + done echo + fi