From 7634034cb7c9edc8fc0d459cfe52fa901563350d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 23 Apr 2023 12:55:10 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c8c0f49e..5a6ce2ae 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2495,8 +2495,8 @@ UPDATEPUSHOVERINFO(){ if [ "${checkhost}" != "false" ]; then echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Running commands${idsCL[Default]}${idsST[Reset]}" ssh root@${host_ip[$hostid]} "/bin/sed -i '/PUSHOVER_/d' /opt/idssys/nodemgmt/settings.conf" - [ "${PUSHOVER_APP_TOKEN}" != "" ] && ssh root@${host_ip[$hostid]} 'echo "PUSHOVER_APP_TOKEN=\"${PUSHOVER_APP_TOKEN}\"" >> ${MMFOLDER}/settings.conf' || ssh root@${host_ip[$hostid]} 'echo "# PUSHOVER_APP_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf' - [ "${PUSHOVER_USER_TOKEN}" != "" ] && ssh root@${host_ip[$hostid]} 'echo "PUSHOVER_USER_TOKEN=\"${PUSHOVER_USER_TOKEN}\"" >> ${MMFOLDER}/settings.conf' || ssh root@${host_ip[$hostid]} 'echo "# PUSHOVER_USER_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf' + [ "${PUSHOVER_APP_TOKEN}" != "" ] && ssh root@${host_ip[$hostid]} "echo PUSHOVER_APP_TOKEN=\\\"${PUSHOVER_APP_TOKEN}\\\" >> ${MMFOLDER}/settings.conf" || ssh root@${host_ip[$hostid]} echo "# PUSHOVER_APP_TOKEN=\\\"\\\" >> ${MMFOLDER}/settings.conf" + [ "${PUSHOVER_USER_TOKEN}" != "" ] && ssh root@${host_ip[$hostid]} "echo PUSHOVER_USER_TOKEN=\\\"${PUSHOVER_USER_TOKEN}\\\" >> ${MMFOLDER}/settings.conf" || ssh root@${host_ip[$hostid]} echo "# PUSHOVER_USER_TOKEN=\\\"\\\" >> ${MMFOLDER}/settings.conf" else echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}"