19 lines
422 B
Bash
19 lines
422 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_auth_mysql-enable,v 1.1.1.1 2002/09/15 19:28:36 jakob Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_auth_mysql.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_auth_mysql module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling MySQL Authentication module..."
|
|
/usr/sbin/apxs -i -a -n auth_mysql ${MODULE}
|
|
fi
|