alfred-monitoring-proxy: Improve curl call

This improves the curl call by:
- Using full executable path
- Removing redundant -X POST
- Using --data-binary instead of --data

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Adrian Schmutzler 2019-01-27 17:38:23 +01:00
parent 4d55ef39f3
commit 0a63717ab1
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ api_url="https://monitoring.freifunk-franken.de/api/alfred2"
fetch_id="64"
/bin/alfred-json -r "$fetch_id" | \
curl -k -v -H "Content-type: application/json; charset=UTF-8" -X POST --data "@-" $api_url
/usr/bin/curl -k -v -H "Content-type: application/json; charset=UTF-8" --data-binary @- "$api_url"