2
0
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:
Pierre-Alain TORET 2018-03-29 13:15:44 +02:00
parent 44d57dcb7f
commit e541294f9f
2 changed files with 8 additions and 0 deletions

View File

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

View File

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