openbsd-ports/www/mod_perl/files/mod_perl-enable

19 lines
378 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_perl-enable,v 1.3 2001/02/12 17:18:55 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 "Can not find mod_perl module (${MODULE})"
exit 1
else
echo "Enabling Perl module..."
/usr/sbin/apxs -i -a -n perl ${MODULE}
fi