openbsd-ports/www/mod_ruby/files/mod_ruby-enable
couderc 5352038ddc initial import of mod_ruby, from Adam Montague
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.
2005-01-16 23:44:39 +00:00

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