From 2314167970befa1035ab665f24ffd64c71cae17c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 23 Apr 2023 13:11:33 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5602e5c9..6897bc1b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2496,8 +2496,10 @@ UPDATEPUSHOVERINFO(){ 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" if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then + echo "putting in info" ssh root@${host_ip[$hostid]} "echo PUSHOVER_APP_TOKEN=\\\"${PUSHOVER_APP_TOKEN}\\\" >> ${MMFOLDER}/settings.conf" else + echo "taking out info" ssh root@${host_ip[$hostid]} "echo \# PUSHOVER_APP_TOKEN=\\\"\\\" >> ${MMFOLDER}/settings.conf" fi if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then