mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
[tr_ratios] switch from bash to sh; quoting
This commit is contained in:
parent
5dfe3432fa
commit
8777efd66c
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
user=''
|
||||
pass=''
|
||||
@ -8,9 +8,8 @@ if [ "$1" = "config" ]; then
|
||||
echo "graph_vlabel Seed ratio %"
|
||||
echo "graph_category torrent"
|
||||
echo "graph_info This plugin shows your transmission ratios per torrent"
|
||||
transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels | iconv -f utf-8 -t ascii//translit
|
||||
transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels | iconv -f utf-8 -t ascii//translit
|
||||
exit 0
|
||||
fi
|
||||
|
||||
transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_data
|
||||
|
||||
transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_data
|
||||
|
Loading…
Reference in New Issue
Block a user