1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Fix for database name containing underscore(s).

This commit is contained in:
Christoph Krybus 2012-01-15 11:29:14 +01:00
parent 3b371ba0fe
commit f00c44d8af

View file

@ -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