blob: 25068a819b0ed4898ee6e522dcd636ab9f4e1e1c (
plain) (
tree)
|
|
#!/bin/sh
set -e
outfile='/etc/raddb/mods-config/files/authorize'
tmpfile="$(mktemp /tmp/getusers.XXXXXXXX)"
cleanup() {
rm -f "$tmpfile"
}
trap cleanup EXIT SIGINT SIGTERM
curl -fs -o "$tmpfile" '{{ radius_passwords.download_url }}'
if ! diff -q "$tmpfile" "$outfile" >/dev/null; then
install -m0640 "$tmpfile" "$outfile"
systemctl restart radiusd.service
fi
|