19 lines
384 B
Plaintext
19 lines
384 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# $OpenBSD: mod_ruby-enable,v 1.1.1.1 2005/01/16 23:44:39 couderc Exp $
|
||
|
|
||
|
MODULE=!!PREFIX!!/lib/mod_ruby.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_ruby module (${MODULE})"
|
||
|
exit 1
|
||
|
else
|
||
|
echo "Enabling Ruby module..."
|
||
|
/usr/sbin/apxs -i -a -n ruby ${MODULE}
|
||
|
fi
|