Update nodemgmt-scripts.sh
This commit is contained in:
@@ -10,7 +10,6 @@ source /opt/idssys/nodemgmt/conf/settings.conf
|
|||||||
source /opt/idssys/nodemgmt/defaults.inc
|
source /opt/idssys/nodemgmt/defaults.inc
|
||||||
|
|
||||||
source /opt/idssys/nodemgmt/inc/status.inc
|
source /opt/idssys/nodemgmt/inc/status.inc
|
||||||
source /opt/idssys/nodemgmt/inc/status.new.inc
|
|
||||||
source /opt/idssys/nodemgmt/inc/certs.inc
|
source /opt/idssys/nodemgmt/inc/certs.inc
|
||||||
source /opt/idssys/nodemgmt/inc/sites.inc
|
source /opt/idssys/nodemgmt/inc/sites.inc
|
||||||
source /opt/idssys/nodemgmt/inc/services.inc
|
source /opt/idssys/nodemgmt/inc/services.inc
|
||||||
@@ -872,6 +871,7 @@ GUI(){
|
|||||||
STATUSRUN_TMPFOLDER=${NM_TMPFOLDER}/${status_start}
|
STATUSRUN_TMPFOLDER=${NM_TMPFOLDER}/${status_start}
|
||||||
mkdir ${STATUSRUN_TMPFOLDER}
|
mkdir ${STATUSRUN_TMPFOLDER}
|
||||||
touch "${STATUSRUN_TMPFOLDER}/status-check.running"
|
touch "${STATUSRUN_TMPFOLDER}/status-check.running"
|
||||||
|
|
||||||
if [ "${2}" == "report" ]; then
|
if [ "${2}" == "report" ]; then
|
||||||
echo "${status_start} - LOCAL - ${NODE_HOSTNAME} - Starting Status Check" >> ${NM_LOGFILE}
|
echo "${status_start} - LOCAL - ${NODE_HOSTNAME} - Starting Status Check" >> ${NM_LOGFILE}
|
||||||
echo -e "${status_start} - Starting status check #############################\n" > ${STATUSRUN_TMPFOLDER}/status-check.running
|
echo -e "${status_start} - Starting status check #############################\n" > ${STATUSRUN_TMPFOLDER}/status-check.running
|
||||||
@@ -891,7 +891,7 @@ GUI(){
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
STATUS ${2} ${3}
|
STATUS ${2} ${3}
|
||||||
rm -f ${NM_TMPFOLDER}/status-check.running
|
rm -Rf ${STATUSRUN_TMPFOLDER}
|
||||||
fi
|
fi
|
||||||
fi;;
|
fi;;
|
||||||
scantimes) STATUS_SCANTIMES ${2} ${3} ${4} ${5};;
|
scantimes) STATUS_SCANTIMES ${2} ${3} ${4} ${5};;
|
||||||
|
|||||||
Reference in New Issue
Block a user