From 2d4c5784bb8510ca2f8784ebbf70bfba689cba7e Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Tue, 28 Nov 2017 11:26:13 +0100 Subject: space_server: radius: fail getusers script on http error --- roles/space_server/templates/radius/getusers.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/space_server/templates/radius/getusers.sh.j2 b/roles/space_server/templates/radius/getusers.sh.j2 index e6413d1..25068a8 100755 --- a/roles/space_server/templates/radius/getusers.sh.j2 +++ b/roles/space_server/templates/radius/getusers.sh.j2 @@ -9,7 +9,7 @@ cleanup() { } trap cleanup EXIT SIGINT SIGTERM -curl -s -o "$tmpfile" '{{ radius_passwords.download_url }}' +curl -fs -o "$tmpfile" '{{ radius_passwords.download_url }}' if ! diff -q "$tmpfile" "$outfile" >/dev/null; then install -m0640 "$tmpfile" "$outfile" systemctl restart radiusd.service -- cgit v1.2.1