Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-05 09:02:08 -06:00
parent 1af4648d34
commit fe0ff13b51

View File

@@ -137,6 +137,13 @@ LISTCERTS(){
fi fi
echo "" echo ""
} }
BACKUP(){
echo ""
if [ -z $action ] || [ "${action}" = "gui" ]; then
ENTER2CONTINUE
fi
}
DELSITE(){ DELSITE(){
if [ ! -z ${1+x} ]; then if [ ! -z ${1+x} ]; then
@@ -473,11 +480,14 @@ GUI(){
echo " [2] Node Services" echo " [2] Node Services"
echo "" echo ""
echo " [3] New Site" echo " [3] New Site"
echo " [4] New Certificate" echo " [4] Delete Site"
echo " [5] Renew Certificates"
echo " [6] List Certificates"
echo "" echo ""
echo " [7] Set folder permissions on nodes" echo " [5] New Certificate"
echo " [6] Renew Certificates"
echo " [7] List Certificates"
echo ""
echo " [8] Set folder permissions on nodes"
echo " [9] Backup Node Settings and Files"
echo "" echo ""
echo " [Q] Quit" echo " [Q] Quit"
echo "" echo ""
@@ -490,9 +500,11 @@ GUI(){
2) GUI;; 2) GUI;;
3) GUI;; 3) GUI;;
4) GUI;; 4) GUI;;
5) CERTRENEW; GUI;; 5) GUI;;
6) LISTCERTS; GUI;; 6) CERTRENEW; GUI;;
7) SET-PERMISSIONS; GUI;; 7) LISTCERTS; GUI;;
8) SET-PERMISSIONS; GUI;;
9) BACKUP; GUI;;
[Qq]) EXIT1 [Qq]) EXIT1
exit 0;; exit 0;;
*) echo "Thats an invaild option,"; *) echo "Thats an invaild option,";
@@ -511,6 +523,7 @@ if [ ${action-x} ]; then
delsite) DELSITE ${2};; delsite) DELSITE ${2};;
newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14};; newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14};;
update) ;; update) ;;
backup) BACKUP;;
status) STATUS ${2};; status) STATUS ${2};;
status-check) STATUS-CHECK ${2};; status-check) STATUS-CHECK ${2};;
set-permissions) DIVIDER; SET-PERMISSIONS ${2};; set-permissions) DIVIDER; SET-PERMISSIONS ${2};;