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