19 lines
377 B
Bash
19 lines
377 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_gzip-enable,v 1.2 2001/08/13 17:16:00 brad Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_gzip.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_gzip module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling GZip module..."
|
|
/usr/sbin/apxs -i -a -n gzip ${MODULE}
|
|
fi
|