diff options
Diffstat (limited to 'community/freeradius/freeradius.install')
-rw-r--r-- | community/freeradius/freeradius.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/freeradius/freeradius.install b/community/freeradius/freeradius.install new file mode 100644 index 000000000..e50aa403d --- /dev/null +++ b/community/freeradius/freeradius.install @@ -0,0 +1,22 @@ +post_install() { + groupadd radiusd + useradd -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 + + /bin/true +} + +pre_remove() { + /etc/rc.d/radiusd stop + /bin/true +} + +post_remove() { + userdel radiusd + groupdel radiusd + /bin/true +} |