From patchwork Sun Jan 27 16:38:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [6/6] alfred-monitoring-proxy: Improve curl call From: Adrian Schmutzler X-Patchwork-Id: 985 Message-Id: <20190127163823.23382-7-freifunk@adrianschmutzler.de> To: franken-dev@freifunk.net Date: Sun, 27 Jan 2019 17:38:23 +0100 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 Reviewed-by: Christian Dresel Reviewed-by: Fabian Bläse --- .../fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy b/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy index b91187f6..d2c2f613 100755 --- a/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy +++ b/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy @@ -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"