From 236f25659cd12c08b2531e19ee2dedad2e31426d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nagy=20K=C3=A1roly=20G=C3=A1briel?= Date: Sun, 17 Mar 2019 13:36:45 +0200 Subject: [PATCH] fluxplug: instruct curl to return the HTTP code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nagy Károly Gábriel --- master | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master b/master index a7a50bf..fbfa6d3 100644 --- a/master +++ b/master @@ -1,6 +1,6 @@ #!/bin/sh myhost=$(/bin/hostname -f) -CURL="/usr/bin/curl -is -u user:password -XPOST 'http://influxdb.url/write?db=jpi' --data-binary " +CURL="/usr/bin/curl -is -o /dev/null -w \"%{http_code}\\\n\" -u user:password -XPOST 'http://influxdb.url/write?db=jpi' --data-binary " AWK="/usr/bin/awk" WC="/usr/bin/wc" DF="/bin/df -t ext4 "