19 lines
377 B
Bash
19 lines
377 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_perl-enable,v 1.4 2001/08/13 17:16:00 brad Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_perl.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_perl module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling Perl module..."
|
|
/usr/sbin/apxs -i -a -n perl ${MODULE}
|
|
fi
|