openbsd-ports/www/mod_log_sql/files/mod_log_sql-enable
naddy 0014fac83a Import mod_log_sql 1.18.
Submitted by Xavier Santolaria <xavier@santolaria.net>.

mod_log_sql offers Apache administrators the ability to log 
accesses to an SQL database.

Note: This port requires a system built with revision 1.40 or higher of
src/usr.sbin/httpd/Makefile.bsd-wrapper.
2003-05-26 15:19:32 +00:00

19 lines
379 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_log_sql-enable,v 1.1.1.1 2003/05/26 15:19:32 naddy Exp $
MODULE=!!PREFIX!!/lib/mod_log_sql.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_log_sql module (${MODULE})"
exit 1
else
echo "Enabling Log SQL module..."
/usr/sbin/apxs -i -a -n sql_log ${MODULE}
fi