aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-28 11:26:13 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-28 11:26:13 +0100
commit2d4c5784bb8510ca2f8784ebbf70bfba689cba7e (patch)
tree6081f4686eaac748b8a8fe18b0fffe98ed36fbc2 /roles/space_server/templates
parent9d37c64f20d13f211f4c861aaef009c0adc6b9ed (diff)
downloadlabitat-ansible-2d4c5784bb8510ca2f8784ebbf70bfba689cba7e.tar.gz
labitat-ansible-2d4c5784bb8510ca2f8784ebbf70bfba689cba7e.tar.xz
labitat-ansible-2d4c5784bb8510ca2f8784ebbf70bfba689cba7e.zip
space_server: radius: fail getusers script on http error
Diffstat (limited to 'roles/space_server/templates')
-rwxr-xr-xroles/space_server/templates/radius/getusers.sh.j22
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