From b7bd24dfbc94d023546f71f61d3f9b1bc568c85f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 11 Mar 2022 18:50:45 -0600 Subject: [PATCH] Update install-dsmon.sh --- install-dsmon.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install-dsmon.sh b/install-dsmon.sh index df41356..26c83f2 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -56,10 +56,9 @@ if [ "${SET_SERVERMONID}" = "new" ]; then mysql -h mysqldb.scity.us -P 6033 --user=sysmoninsert --password=sysmoninsert -e "${QRY}" QRY="USE servermonitor; SELECT id FROM hosts WHERE host='${ADD_SERVERNAME}';" SET_SERVERMONID=`mysql -h mysqldb.scity.us -P 6033 --user=sysmoninsert --password=sysmoninsert -e "${QRY}"` - SET_SERVERMONID=${SET_SERVERMONID//id - /} - echo -e "${idsCL[LightGreen]}Server successfully added, it was given ID# ${SET_SERVERMONID}${idsCL[Default]}" + echo -e "${idsCL[LightGreen]}Server successfully added, it was given ID# ${SET_SERVERMONID//id + /}${idsCL[Default]}" echo "" fi