Update sites.inc
This commit is contained in:
@@ -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,15 +579,20 @@ 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
|
||||||
echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit, or (s) to save: ${idsCL[Default]}"
|
if [ "${edit}" != "s" ]; then
|
||||||
read -n 1 edit
|
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
|
case "${edit}" in
|
||||||
4) [ "${hsts}" == "-" ] && hsts='Yes' || hsts='-';;
|
4) [ "${hsts}" == "-" ] && hsts='Yes' || hsts='-';;
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user