mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Clarify the non-declared env variables
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
This commit is contained in:
parent
44d57dcb7f
commit
e541294f9f
@ -31,6 +31,9 @@ Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
|
||||
MIT
|
||||
=cut
|
||||
|
||||
syncthing_relaysrv_host=${syncthing_relaysrv_host:-}
|
||||
syncthing_relaysrv_port=${syncthing_relaysrv_port:-}
|
||||
|
||||
getstatus() {
|
||||
"$CURL" -s "http://$syncthing_relaysrv_host:$syncthing_relaysrv_port/status"
|
||||
}
|
||||
|
@ -34,6 +34,11 @@ Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
|
||||
MIT
|
||||
=cut
|
||||
|
||||
syncthing_apikey=${syncthing_apikey:-}
|
||||
syncthing_proto=${syncthing_proto:-}
|
||||
syncthing_host=${syncthing_host:-}
|
||||
syncthing_port=${syncthing_port:-}
|
||||
|
||||
getstatus() {
|
||||
"$CURL" -s -X GET -H "X-API-Key: $syncthing_apikey" "$syncthing_proto://$syncthing_host:$syncthing_port/rest/system/status"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user