c4299a9b4b
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.
19 lines
374 B
Bash
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
|