Move debug messages into rad_virtual_server
[freeradius.git] / debian / freeradius-common.postinst
1 #! /bin/sh
2
3 set -e
4
5 case "$1" in
6   configure)
7         if [ -z "$2" ]; then
8           # On a fresh install, add the necessary user and group
9           adduser --quiet --system --no-create-home --home /etc/freeradius --group --disabled-password freerad
10
11           # Put user freerad in group shadow, so the daemon can auth locally
12           # Only do this on fresh install as the admin may not want freerad in shadow
13           # group if authenticating by another mechanism
14           adduser --quiet freerad shadow
15         fi
16         ;;
17 esac
18
19 #DEBHELPER#
20
21 exit 0
22