mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #4 from ckrybus/master
postgres_queries2: Simple fix for database name containing underscore(s).
This commit is contained in:
commit
46b8c8964d
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
db="${0/*_/}"
|
||||
db=$(basename $0 | sed 's/^postgres_queries2_//g')
|
||||
if [ "$db" == "" ];then
|
||||
echo "error/no db" >&2
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user