mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
38 lines
576 B
Text
38 lines
576 B
Text
pre_install() {
|
|
/bin/true
|
|
}
|
|
|
|
post_install() {
|
|
groupadd radiusd
|
|
useradd -g radiusd -s /bin/false radiusd
|
|
|
|
touch /var/run/radiusd/radiusd.pid
|
|
chown -R radiusd.radiusd /var/run/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
|
|
|
|
/bin/true
|
|
}
|
|
|
|
pre_upgrade() {
|
|
/bin/true
|
|
}
|
|
|
|
post_upgrade() {
|
|
/bin/true
|
|
}
|
|
|
|
pre_remove() {
|
|
/etc/rc.d/radiusd stop
|
|
/bin/true
|
|
}
|
|
|
|
post_remove() {
|
|
userdel radiusd
|
|
groupdel radiusd
|
|
/bin/true
|
|
}
|
|
|