diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-10-12 07:39:32 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-10-12 07:39:32 +0000 |
commit | 3dd3c24b9b0a8de7f4baf5b26473d4468a355b63 (patch) | |
tree | 1a385f1d0d268da28e5fa3b0aa299a31ea8b46d4 /testing/freeradius | |
parent | c1ef090ef236dcc54774e595072edd1181175fab (diff) | |
download | aports-3dd3c24b9b0a8de7f4baf5b26473d4468a355b63.tar.bz2 aports-3dd3c24b9b0a8de7f4baf5b26473d4468a355b63.tar.xz |
testing/freeradius: implemented config check at startup
Diffstat (limited to 'testing/freeradius')
-rw-r--r-- | testing/freeradius/APKBUILD | 4 | ||||
-rw-r--r-- | testing/freeradius/freeradius.initd | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/testing/freeradius/APKBUILD b/testing/freeradius/APKBUILD index 960d4d3f57..60b6cf1b3d 100644 --- a/testing/freeradius/APKBUILD +++ b/testing/freeradius/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Leonardo Arena <rnalrd@gmail.com> pkgname=freeradius pkgver=2.1.10 -pkgrel=10 +pkgrel=11 pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server" url="http://freeradius.org/" license="GPL" @@ -141,4 +141,4 @@ unixodbc() { md5sums="e552704fc1b46d51176e575afa96dcc6 freeradius-server-2.1.10.tar.gz fc6693f3df5a0694610110287a28568a freeradius.confd -33d97415732973722bb0e0d2c4b45b0c freeradius.initd" +6cd5d02575f514a51d741dba3f7c70d2 freeradius.initd" diff --git a/testing/freeradius/freeradius.initd b/testing/freeradius/freeradius.initd index 3a00e2a39f..2386a9fcc4 100644 --- a/testing/freeradius/freeradius.initd +++ b/testing/freeradius/freeradius.initd @@ -25,6 +25,11 @@ checkconfig() { return 1 fi + if [ "`/usr/sbin/radiusd -C >/dev/null 2>&1; echo $?`" != "0" ] ; then + eerror "Config not ok! (try /usr/sbin/radiusd -C )" + return 1 + fi + RADIUSD_USER=`grep '^ *user *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3` RADIUSD_GROUP=`grep '^ *group *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3` if [ -n "${RADIUSD_USER}" ] && ! getent passwd ${RADIUSD_USER} > /dev/null ; then |