mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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:
parent
45be879062
commit
59c213f707
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue