Strip whitespace from input passed through xinetd (fixes issue #1)

This commit is contained in:
Matthew Connelly 2016-03-15 20:18:51 +00:00
parent 39dc58dfb6
commit a2455a7924
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ is_registered 'if' && register_iface_modules
echo "# munin node at $host"
while read cmd mod;do
cmd=${cmd%[-[:space:]]};mod=${mod%[-[:space:]]}
case $cmd in
list) echo $modules;;
config) is_registered $mod && config_$mod || echo "# Unknown plugin";echo .;;