diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-28 11:26:13 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-28 11:26:13 +0100 |
commit | 2d4c5784bb8510ca2f8784ebbf70bfba689cba7e (patch) | |
tree | 6081f4686eaac748b8a8fe18b0fffe98ed36fbc2 | |
parent | 9d37c64f20d13f211f4c861aaef009c0adc6b9ed (diff) | |
download | labitat-ansible-2d4c5784bb8510ca2f8784ebbf70bfba689cba7e.tar.gz labitat-ansible-2d4c5784bb8510ca2f8784ebbf70bfba689cba7e.tar.xz labitat-ansible-2d4c5784bb8510ca2f8784ebbf70bfba689cba7e.zip |
space_server: radius: fail getusers script on http error
-rwxr-xr-x | roles/space_server/templates/radius/getusers.sh.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |