2000-09-06 03:52:45 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2001-08-13 13:16:00 -04:00
|
|
|
# $OpenBSD: mod_perl-enable,v 1.4 2001/08/13 17:16:00 brad Exp $
|
2000-09-06 03:52:45 -04:00
|
|
|
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_perl.so
|
|
|
|
|
2001-02-12 12:18:55 -05:00
|
|
|
if [ `id -u` -ne 0 ]; then
|
|
|
|
echo "You must be root to run this script."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2000-09-06 03:52:45 -04:00
|
|
|
if [ ! -f ${MODULE} ]; then
|
2001-08-13 13:16:00 -04:00
|
|
|
echo "Cannot find mod_perl module (${MODULE})"
|
2000-09-06 03:52:45 -04:00
|
|
|
exit 1
|
|
|
|
else
|
2001-02-09 14:19:39 -05:00
|
|
|
echo "Enabling Perl module..."
|
2000-09-06 03:52:45 -04:00
|
|
|
/usr/sbin/apxs -i -a -n perl ${MODULE}
|
|
|
|
fi
|