Update sites.inc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user