Fixed mcstatus shim to actually call mc-monitor

For #426
This commit is contained in:
Geoff Bourne 2020-01-27 08:30:54 -06:00
parent 8afb1651fd
commit c8380daee5

View File

@ -9,9 +9,9 @@ if [[ ${cmd} == "ping" ]]; then
IFS=':'
read -a parts <<< "${addr}"
if [[ ${#parts[*]} -gt 1 ]]; then
echo mc-monitor status --host ${parts[0]} --port ${parts[1]}
exec mc-monitor status --host ${parts[0]} --port ${parts[1]}
else
echo mc-monitor status --host ${parts[0]}
exec mc-monitor status --host ${parts[0]}
fi
else
echo "ERROR can only shim the 'ping' command"