From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/freeradius/freeradius.install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 community/freeradius/freeradius.install (limited to 'community/freeradius/freeradius.install') diff --git a/community/freeradius/freeradius.install b/community/freeradius/freeradius.install new file mode 100644 index 000000000..cb7590e77 --- /dev/null +++ b/community/freeradius/freeradius.install @@ -0,0 +1,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 +} -- cgit v1.2.3-54-g00ecf