#!/bin/sh
#
# $OpenBSD: mod_fastcgi-enable,v 1.1.1.1 2005/02/14 06:23:23 mbalmer Exp $

MODULE=/usr/local/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
