ensure user is root before trying to proceed with installation.
This commit is contained in:
parent
363f0b5f8e
commit
f609e9336f
@ -1,9 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: mod_perl-enable,v 1.2 2001/02/09 19:19:40 brad Exp $
|
||||
# $OpenBSD: mod_perl-enable,v 1.3 2001/02/12 17:18:55 brad Exp $
|
||||
|
||||
MODULE=!!PREFIX!!/lib/mod_perl.so
|
||||
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "You must be root to run this script."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f ${MODULE} ]; then
|
||||
echo "Can not find mod_perl module (${MODULE})"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user