2
0
Fork 0
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:
Steve Schnepp 2012-01-16 01:56:29 -08:00
commit 46b8c8964d

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
db="${0/*_/}" db=$(basename $0 | sed 's/^postgres_queries2_//g')
if [ "$db" == "" ];then if [ "$db" == "" ];then
echo "error/no db" >&2 echo "error/no db" >&2
exit 1 exit 1