19 lines
402 B
Bash
19 lines
402 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_frontpage-enable,v 1.3 2004/10/13 12:53:06 danh Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_frontpage.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_frontpage module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling Frontpage module..."
|
|
/usr/sbin/apxs -e -a -n frontpage ${MODULE}
|
|
fi
|