openbsd-ports/www/mod_fastcgi/files/mod_fastcgi-enable
2005-02-14 06:23:23 +00:00

19 lines
399 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_fastcgi-enable,v 1.1.1.1 2005/02/14 06:23:23 mbalmer Exp $
MODULE=!!PREFIX!!/lib/mod_fastcgi.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_fastcgi module (${MODULE})"
exit 1
else
echo "Enabling FastCGI module..."
/usr/sbin/apxs -i -a -n fastcgi ${MODULE}
fi