Update nodemgmt-scripts.sh
This commit is contained in:
@@ -2497,13 +2497,13 @@ UPDATEPUSHOVERINFO(){
|
|||||||
ssh root@${host_ip[$hostid]} "/bin/sed -i '/PUSHOVER_/d' /opt/idssys/nodemgmt/settings.conf"
|
ssh root@${host_ip[$hostid]} "/bin/sed -i '/PUSHOVER_/d' /opt/idssys/nodemgmt/settings.conf"
|
||||||
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
|
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
|
||||||
echo "putting in info 'root@${host_ip[$hostid]}'"
|
echo "putting in info 'root@${host_ip[$hostid]}'"
|
||||||
ssh root@${host_ip[$hostid]} "echo 'yes1'; echo PUSHOVER_APP_TOKEN=\\\"${PUSHOVER_APP_TOKEN}\\\" >> ${MMFOLDER}/settings.conf"
|
ssh root@${host_ip[$hostid]} "echo PUSHOVER_APP_TOKEN=\"${PUSHOVER_APP_TOKEN}\" >> ${MMFOLDER}/settings.conf"
|
||||||
else
|
else
|
||||||
echo "taking out info"
|
echo "taking out info"
|
||||||
ssh root@${host_ip[$hostid]} "echo \# PUSHOVER_APP_TOKEN=\\\"\\\" >> ${MMFOLDER}/settings.conf"
|
ssh root@${host_ip[$hostid]} "echo \# PUSHOVER_APP_TOKEN=\\\"\\\" >> ${MMFOLDER}/settings.conf"
|
||||||
fi
|
fi
|
||||||
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
|
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
|
||||||
ssh root@${host_ip[$hostid]} "echo 'yes2'; echo PUSHOVER_USER_TOKEN=\\\"${PUSHOVER_USER_TOKEN}\\\" >> ${MMFOLDER}/settings.conf"
|
ssh root@${host_ip[$hostid]} "echo PUSHOVER_USER_TOKEN=\\\"${PUSHOVER_USER_TOKEN}\\\" >> ${MMFOLDER}/settings.conf"
|
||||||
else
|
else
|
||||||
ssh root@${host_ip[$hostid]} "echo \# PUSHOVER_USER_TOKEN=\\\"\\\" >> ${MMFOLDER}/settings.conf"
|
ssh root@${host_ip[$hostid]} "echo \# PUSHOVER_USER_TOKEN=\\\"\\\" >> ${MMFOLDER}/settings.conf"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user