5352038ddc
Mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby.
19 lines
384 B
Bash
19 lines
384 B
Bash
#!/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
|