openbsd-ports/www/mod_ldapvhost/files/mod_ldapvhost-enable
2006-10-22 08:55:38 +00:00

19 lines
400 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_ldapvhost-enable,v 1.1.1.1 2006/10/22 08:55:38 mbalmer Exp $
MODULE=!!PREFIX!!/lib/mod_ldapvhost.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_ldapvhost module (${MODULE})"
exit 1
else
echo "Enabling LDAP virtual hosts module..."
/usr/sbin/apxs -i -a -n ldapvhost ${MODULE}
fi