openbsd-ports/www/mod_frontpage/files/mod_frontpage-enable

19 lines
402 B
Plaintext
Raw Normal View History

#!/bin/sh
#
2001-08-13 12:40:54 -04:00
# $OpenBSD: mod_frontpage-enable,v 1.2 2001/08/13 16:40:54 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
2001-08-13 12:40:54 -04:00
echo "Cannot find mod_frontpage module (${MODULE})"
exit 1
else
echo "Enabling Frontpage module..."
/usr/sbin/apxs -i -a -n frontpage ${MODULE}
fi