From 9c0c2e7d06a503c8e156a4e40c99b2799cb50de8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 25 May 2023 21:11:48 -0500 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index b18076c8..2973c193 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -568,7 +568,7 @@ SITEINFO(){ [ "$(grep include/websocket-support.conf ${sitefile})" != "" ] && wbskt='Yes' || wbskt='-' [ "$(grep include/secure-access.conf ${sitefile})" != "" ] && lock='Yes' || lock='-' - until [ "${edit}" = "s" ]; do + until [ "${edit}" = "c" ]; do echo -e "\033[K${idsCL[Cyan]}!) Site Address: ${idsST[Bold]}${site}${idsST[Reset]}" echo -e "\033[K${idsCL[Cyan]}!) Site Type: ${idsST[Bold]}${type}${idsST[Reset]}" echo -e "\033[K${idsCL[Cyan]}!) SSL Secure: ${idsST[Bold]}${ssl}${idsST[Reset]} - ${idsCL[LightCyan]}${SUBJECTNAMES}" @@ -579,15 +579,20 @@ SITEINFO(){ echo -e "\033[K${idsCL[Cyan]}7) Proxy Server: ${idsST[Bold]}${server}${idsST[Reset]}" echo -e "\033[K${idsCL[Cyan]}8) Proxy Port: ${idsST[Bold]}${port}${idsST[Reset]}" fi - echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit, or (s) to save: ${idsCL[Default]}" - read -n 1 edit + if [ "${edit}" != "s" ]; then + echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit, or (s) to save: ${idsCL[Default]}" + read -n 1 edit - case "${edit}" in - 4) [ "${hsts}" == "-" ] && hsts='Yes' || hsts='-';; - 5) [ "${wbskt}" == "-" ] && wbskt='Yes' || wbskt='-';; - 6) [ "${lock}" == "-" ] && lock='Yes' || lock='-';; - esac - [ "${edit}" != "s" ] && echo -e "\033[10A" + case "${edit}" in + 4) [ "${hsts}" == "-" ] && hsts='Yes' || hsts='-';; + 5) [ "${wbskt}" == "-" ] && wbskt='Yes' || wbskt='-';; + 6) [ "${lock}" == "-" ] && lock='Yes' || lock='-';; + esac + echo -e "\033[10A" + else + echo -e "\nSAVED" + edit=c + fi done echo