sysutils/munin-node: Fix plugins/zfs_compress if label contains . (dot)
Fixes "[ERROR] config error" that occurs if "." (dot) is in label PR: 281118 Reported by: takefu <takefu@airport.fm> Tested by: John W. O'Brien <john@saltant.com> Approved by: portmgr (maintainer timeout, 3+ months)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
PORTNAME= munin
|
||||
PORTVERSION= ${MUNIN_VERSION}
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils perl5
|
||||
PKGNAMESUFFIX= -node
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ EOM
|
||||
listing=$(zfs get -t filesystem -H compressratio)
|
||||
|
||||
while read -r label _ ratio _; do
|
||||
clean_label=$(echo "${label}" | sed -e 's|/|__|g')
|
||||
clean_label=$(echo "${label}" | sed -e 's|/|__|g' -e 's|\.|_|g' )
|
||||
echo "${clean_label}.label ${label}"
|
||||
echo "${clean_label}.value ${ratio%x}"
|
||||
done <<eot
|
||||
|
||||
Reference in New Issue
Block a user