diff options
Diffstat (limited to 'eclass/apache.eclass')
-rw-r--r-- | eclass/apache.eclass | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/eclass/apache.eclass b/eclass/apache.eclass new file mode 100644 index 000000000000..9bbffce9217a --- /dev/null +++ b/eclass/apache.eclass @@ -0,0 +1,24 @@ +# $Header: /var/cvsroot/gentoo-x86/eclass/apache.eclass,v 1.1 2003/06/11 20:13:17 brad Exp $ +# +# Author: Brad Laue <brad@gentoo.org> + +#allow users to customize their data directory by setting the +#home directory of the 'apache' user elsewhere. + +ECLASS=apache +INHERITED="$INHERITED $ECLASS" + + +get_docroot () { + + DOCROOT=`grep ^apache: /etc/passwd | cut -d: -f6` + if [ -z "$DOCROOT" ] + then + DOCROOT="/home/httpd" + eerror "Please create the apache user and set his home" + eerror "directory to your desired datadir location." + eerror "Defaulting to \"/home/httpd\"." + else + einfo "$DOCROOT is your Apache data directory ..." + fi +} |