7b94877361
Submitted by Xavier Santolaria <xavier@santolaria.net>. mod_text2html is an Apache module. It is written in C and was designed to replace Apache's internal text/plain handler.
19 lines
386 B
Bash
19 lines
386 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_text2html-enable,v 1.1.1.1 2003/05/29 22:45:38 naddy Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_text2html.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_text2html module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling Layout module..."
|
|
/usr/sbin/apxs -i -a -n text2html ${MODULE}
|
|
fi
|