Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-04 22:02:17 -06:00
parent 7f3777cbcf
commit ea5c9fc27e

View File

@@ -83,6 +83,14 @@ CERTRENEW(){
SERVICE nginx reload 2>&1 | tee -a /opt/idssys/nodemgmt/cert-renewal.lastrun
}
LISTCERTS(){
DIVIDER true
echo here
if [ -z $action ] || [ "${action}" = "gui" ]; then
ENTER2CONTINUE
fi
}
NIGHTLYRENEW(){
rm -f /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root $CERT_DAEMON renew --webroot -w /var/www/html &>> /opt/idssys/nodemgmt/cert-renewal.lastrun
@@ -429,8 +437,9 @@ GUI(){
echo " [3] New Site"
echo " [4] New Certificate"
echo " [5] Renew Certificates"
echo " [6] List Certificates"
echo ""
echo " [6] Set folder permissions on nodes"
echo " [7] Set folder permissions on nodes"
echo ""
echo " [Q] Quit"
echo ""
@@ -440,15 +449,12 @@ GUI(){
echo ""
case $opt in
1) STATUS; GUI;;
2) GLANCES_INSTALL
INSTALL_MENU;;
3) X11VNC_INSTALL
INSTALL_MENU;;
4) FW_INSTALL
INSTALL_MENU;;
5) LINUPX_UNINSTALL
INSTALL_MENU;;
6) SET-PERMISSIONS; GUI;;
2) GUI;;
3) GUI;;
4) GUI;;
5) CERTRENEW; GUI;;
6) LISTCERTS; GUI;;
7) SET-PERMISSIONS; GUI;;
[Qq]) EXIT1
exit 0;;
*) echo "Thats an invaild option,";
@@ -462,6 +468,7 @@ if [ ${action-x} ]; then
case $action in
newcert) NEWCERT ${2};;
certrenew) CERTRENEW;;
listcerts) LISTCERTS;;
nightlyrenew) NIGHTLYRENEW;;
delsite) DELSITE ${2};;
newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14};;