Update sites.inc
This commit is contained in:
@@ -679,7 +679,7 @@ SITEINFO(){
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K ((${idsCL[Green]}e${idsCL[Default]})xit"
|
||||
echo -e "\033[K (${idsCL[Green]}R${idsCL[Default]})eload, (${idsCL[Green]}E${idsCL[Default]})xit"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[7A"
|
||||
@@ -687,7 +687,15 @@ SITEINFO(){
|
||||
read siteid
|
||||
echo
|
||||
|
||||
if [ "${SITELIST[${siteid}]}" != "" ]; then
|
||||
if [ "${siteid^}" == "E" ]; then
|
||||
echo -e "\n\033[K\n\033[K"
|
||||
exit 0
|
||||
|
||||
elif [ "${siteid^}" == "R" ]; then
|
||||
SITEINFO ${1} ${2}
|
||||
exit 0
|
||||
|
||||
elif [ "${SITELIST[${siteid}]}" != "" ]; then
|
||||
site=${SITELIST[${siteid}]}
|
||||
sitefile=${gosite}/${site}.conf
|
||||
if [ "$(grep \#ssl_certificate ${sitefile})" != "" ]; then
|
||||
@@ -758,15 +766,13 @@ SITEINFO(){
|
||||
echo -e "\033[K"
|
||||
fi
|
||||
if [ "${edit}" != "s" ]; then
|
||||
# if [ $f -eq 0 ]; then
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K (${idsCL[Green]}s${idsCL[Default]})ave, (${idsCL[Red]}c${idsCL[Default]})ancel, (${idsCL[Green]}e${idsCL[Default]})xit"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[7A"
|
||||
# fi
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K (${idsCL[Green]}S${idsCL[Default]})ave, (${idsCL[Red]}C${idsCL[Default]})ancel, (${idsCL[Green]}E${idsCL[Default]})xit"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[7A"
|
||||
|
||||
echo -en "\033[K\n\033[K\r${idsCL[LightCyan]}Enter the site number to edit: ${idsCL[Default]}"
|
||||
read -n 1 edit
|
||||
|
||||
Reference in New Issue
Block a user