19 lines
376 B
Bash
19 lines
376 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_dav-enable,v 1.1.1.1 2002/09/13 16:39:25 jakob Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/libdav.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_dav module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling DAV module..."
|
|
/usr/sbin/apxs -i -a -n dav ${MODULE}
|
|
fi
|