openbsd-ports/www/mod_auth_radius/files/mod_auth_radius-enable
jcs f5740687b8 Import of mod_auth_radius-1.5.2.
This is the Apache RADIUS authentication module. It allows
any Apache web-server to become a RADIUS client for
authentication and accounting requests.
2001-09-01 15:26:13 +00:00

19 lines
425 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_auth_radius-enable,v 1.1.1.1 2001/09/01 15:26:13 jcs Exp $
MODULE=!!PREFIX!!/lib/mod_auth_radius.so
if [ `id -u` -ne 0 ]; then
echo "You must be root to run this script."
exit
fi
if [ ! -f ${MODULE} ]; then
echo "Cannot find mod_auth_radius module (${MODULE})"
exit 1
else
echo "Enabling RADIUS Authentication module..."
/usr/sbin/apxs -i -a -n radius_auth ${MODULE}
fi