diff options
author | Brad Laue <brad@gentoo.org> | 2003-06-11 20:13:17 +0000 |
---|---|---|
committer | Brad Laue <brad@gentoo.org> | 2003-06-11 20:13:17 +0000 |
commit | a98895e590e06856613508838ac6fd2f4d94cbf5 (patch) | |
tree | 68cb5a2996cbeabc7e2024f56d0e2fffb0b146df /eclass | |
parent | port to clc infrastructure (diff) | |
download | historical-a98895e590e06856613508838ac6fd2f4d94cbf5.tar.gz historical-a98895e590e06856613508838ac6fd2f4d94cbf5.tar.bz2 historical-a98895e590e06856613508838ac6fd2f4d94cbf5.zip |
Initial import of this; additions welcome
Diffstat (limited to '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 +} |