19 lines
402 B
Plaintext
19 lines
402 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# $OpenBSD: mod_security-enable,v 1.1.1.1 2003/11/19 01:33:26 david Exp $
|
||
|
|
||
|
MODULE=!!PREFIX!!/lib/mod_security.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_security module (${MODULE})"
|
||
|
exit 1
|
||
|
else
|
||
|
echo "Enabling security module..."
|
||
|
/usr/sbin/apxs -i -a -n security ${MODULE}
|
||
|
fi
|