openbsd-ports/www/mod_layout/files/mod_layout-enable
naddy c4299a9b4b Import mod_layout 3.2.
Submitted by Xavier Santolaria <xavier@santolaria.net>.

mod_layout is an Apache module to wrap pages.  This means that you
can add at both the beginning (header) and the end (footer) of the
document some information.
2003-05-25 19:57:56 +00:00

19 lines
374 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_layout-enable,v 1.1.1.1 2003/05/25 19:57:56 naddy Exp $
MODULE=!!PREFIX!!/lib/mod_layout.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_layout module (${MODULE})"
exit 1
else
echo "Enabling Layout module..."
/usr/sbin/apxs -i -a -n layout ${MODULE}
fi