aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeradius/setup-freeradius.in
blob: b6cad29f24a72b5be53b5723c8b1344d1e2482fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -eu

DEFAULT_MODULES='@@DEFAULT_MODULES@@'

case "${1:-}" in
	'' | -h | --help)
		cat >&2 <<-EOF
		Usage: $0 [-h | <action>]

		Actions:
		  enable-default-mods  Enable all default modules (i.e. create
		                       symlinks in /etc/raddb/mods-enabled).
		  
		EOF
		exit 2
	;;
	enable-default-mods)
		for mod in $DEFAULT_MODULES; do
			ln -sv ../mods-available/$mod /etc/raddb/mods-enabled/$mod || true
		done
	;;
esac