Update nodemgmt-scripts.sh
This commit is contained in:
@@ -83,6 +83,14 @@ CERTRENEW(){
|
|||||||
SERVICE nginx reload 2>&1 | tee -a /opt/idssys/nodemgmt/cert-renewal.lastrun
|
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(){
|
NIGHTLYRENEW(){
|
||||||
rm -f /opt/idssys/nodemgmt/cert-renewal.lastrun
|
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
|
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 " [3] New Site"
|
||||||
echo " [4] New Certificate"
|
echo " [4] New Certificate"
|
||||||
echo " [5] Renew Certificates"
|
echo " [5] Renew Certificates"
|
||||||
|
echo " [6] List Certificates"
|
||||||
echo ""
|
echo ""
|
||||||
echo " [6] Set folder permissions on nodes"
|
echo " [7] Set folder permissions on nodes"
|
||||||
echo ""
|
echo ""
|
||||||
echo " [Q] Quit"
|
echo " [Q] Quit"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -440,15 +449,12 @@ GUI(){
|
|||||||
echo ""
|
echo ""
|
||||||
case $opt in
|
case $opt in
|
||||||
1) STATUS; GUI;;
|
1) STATUS; GUI;;
|
||||||
2) GLANCES_INSTALL
|
2) GUI;;
|
||||||
INSTALL_MENU;;
|
3) GUI;;
|
||||||
3) X11VNC_INSTALL
|
4) GUI;;
|
||||||
INSTALL_MENU;;
|
5) CERTRENEW; GUI;;
|
||||||
4) FW_INSTALL
|
6) LISTCERTS; GUI;;
|
||||||
INSTALL_MENU;;
|
7) SET-PERMISSIONS; GUI;;
|
||||||
5) LINUPX_UNINSTALL
|
|
||||||
INSTALL_MENU;;
|
|
||||||
6) SET-PERMISSIONS; GUI;;
|
|
||||||
[Qq]) EXIT1
|
[Qq]) EXIT1
|
||||||
exit 0;;
|
exit 0;;
|
||||||
*) echo "Thats an invaild option,";
|
*) echo "Thats an invaild option,";
|
||||||
@@ -462,6 +468,7 @@ if [ ${action-x} ]; then
|
|||||||
case $action in
|
case $action in
|
||||||
newcert) NEWCERT ${2};;
|
newcert) NEWCERT ${2};;
|
||||||
certrenew) CERTRENEW;;
|
certrenew) CERTRENEW;;
|
||||||
|
listcerts) LISTCERTS;;
|
||||||
nightlyrenew) NIGHTLYRENEW;;
|
nightlyrenew) NIGHTLYRENEW;;
|
||||||
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};;
|
||||||
|
|||||||
Reference in New Issue
Block a user