aboutsummaryrefslogblamecommitdiffstats
path: root/roles/space_server/templates/radius/getusers.sh.j2
blob: e77758b97c5f650d9ad69554e322bcaf2a465a6f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                    
#!/bin/sh

if curl -s -4 -k '{{ radius_passwords.download_url }}' -o /etc/raddb/users.new; then
	if ! diff -q /etc/raddb/users /etc/raddb/users.new >/dev/null; then
		mv -f /etc/raddb/users.new /etc/raddb/mods-config/files/authorize
		systemctl restart radiusd.service
	fi
else
	rm -f /etc/raddb/users.new
fi