Update sites.inc

This commit is contained in:
2023-05-25 21:11:48 -05:00
parent c8c96af6f6
commit 9c0c2e7d06

View File

@@ -568,7 +568,7 @@ SITEINFO(){
[ "$(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='-'
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 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]}!) Site Type: ${idsST[Bold]}${type}${idsST[Reset]}"
echo -e "\033[K${idsCL[Cyan]}!) SSL Secure: ${idsST[Bold]}${ssl}${idsST[Reset]} - ${idsCL[LightCyan]}${SUBJECTNAMES}" echo -e "\033[K${idsCL[Cyan]}!) SSL Secure: ${idsST[Bold]}${ssl}${idsST[Reset]} - ${idsCL[LightCyan]}${SUBJECTNAMES}"
@@ -579,6 +579,7 @@ SITEINFO(){
echo -e "\033[K${idsCL[Cyan]}7) Proxy Server: ${idsST[Bold]}${server}${idsST[Reset]}" 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]}" echo -e "\033[K${idsCL[Cyan]}8) Proxy Port: ${idsST[Bold]}${port}${idsST[Reset]}"
fi fi
if [ "${edit}" != "s" ]; then
echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit, or (s) to save: ${idsCL[Default]}" echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit, or (s) to save: ${idsCL[Default]}"
read -n 1 edit read -n 1 edit
@@ -587,7 +588,11 @@ SITEINFO(){
5) [ "${wbskt}" == "-" ] && wbskt='Yes' || wbskt='-';; 5) [ "${wbskt}" == "-" ] && wbskt='Yes' || wbskt='-';;
6) [ "${lock}" == "-" ] && lock='Yes' || lock='-';; 6) [ "${lock}" == "-" ] && lock='Yes' || lock='-';;
esac esac
[ "${edit}" != "s" ] && echo -e "\033[10A" echo -e "\033[10A"
else
echo -e "\nSAVED"
edit=c
fi
done done
echo echo