diff --git a/inc/sites.inc b/inc/sites.inc index 3e73fa46..f239bf50 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -436,4 +436,31 @@ NEWSITE(){ ${SCRIPT} newsite exit 0 fi -} \ No newline at end of file +} + +VIEWSITEINFO(){ + cw_spc1=20 + cw_spc2=7 + cw_spc3=7 + cw_spc4=7 + cw_spc5=7 + # cw_spc6=15 + + echo -e "${idsCL[LightGreen]}Site Information ${idsCL[Default]}" + DIVIDER false yellow 120 + msg1="Site Address"; c=0; spc1=''; spct=$((${cw_spc1}-${#msg1})); until [ $c = ${spct} ]; do spc1="${spc1} "; c=`expr $c + 1`; done + msg2="Type"; c=0; spc2=''; spct=$((${cw_spc2}-${#msg2})); until [ $c = ${spct} ]; do spc2="${spc2} "; c=`expr $c + 1`; done + msg3="SSL"; c=0; spc3=''; spct=$((${cw_spc3}-${#msg3})); until [ $c = ${spct} ]; do spc3="${spc3} "; c=`expr $c + 1`; done + msg4="HSTS"; c=0; spc4=''; spct=$((${cw_spc4}-${#msg4})); until [ $c = ${spct} ]; do spc4="${spc4} "; c=`expr $c + 1`; done + msg5="WBSKT"; c=0; spc5=''; spct=$((${cw_spc5}-${#msg5})); until [ $c = ${spct} ]; do spc5="${spc5} "; c=`expr $c + 1`; done + msg6="Proxy Host"; # c=0; spc6=''; spct=$((${cw_spc6}-${#msg6})); until [ $c = ${spct} ]; do spc6="${spc6} "; c=`expr $c + 1`; done + echo -e "${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc7}" + DIVIDER false yellow 120 +} + + + + + + + diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 813c011d..b3e1103b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1232,6 +1232,8 @@ GUI(){ delsite) DELSITE ${2} ${3} ${4} ${5};; delsites) DELSITES;; newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22} ${23} ${24} ${25};; + siteinfo) VIEWSITEINFO;; + update) ;; update-nodes) if [ "${2}" == "report" ]; then