summaryrefslogtreecommitdiff
path: root/community/freeradius/freeradius.install
blob: cb7590e77adfb0acf7ee60039441ec1d357550d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    groupadd -r radiusd
    useradd -r -m -d /var/lib/radiusd -g radiusd -s /bin/false radiusd

    touch var/log/radius/radius.log
    chown -R radiusd:radiusd var/log/radius/radius.log

    [ -d etc/raddb ] || cp -a etc/raddb.default etc/raddb

    true
}

post_remove() {
    userdel radiusd
    groupdel radiusd
    true
}