aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2013-03-18 22:39:12 +0000
committerMichael Elkins <melkins@tislabs.com>2013-03-18 22:39:12 +0000
commitb8205920fb9c0864bc84e06b47e5a7a860fd2120 (patch)
treeade1b568f1d0cc6a52ef53154a6022719f9bdd2c
parent8ce91d00ecc6f2de325c5d6d8d3fd6ab4f1e1a99 (diff)
test for existance of /var/www/html which is DocumentRoot on RHEL/CentOS
svn path=/trunk/; revision=5170
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a61ad2ce..7c0037b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -370,7 +370,14 @@ case $host_os in
RCYNIC_HTML_DIR='/usr/local/www/apache22/data/rcynic'
;;
linux*)
- RCYNIC_HTML_DIR='/var/www/rcynic'
+ if test -d /var/www/html
+ then
+ # RHEL/CentOS
+ RCYNIC_HTML_DIR='/var/www/html/rcynic'
+ else
+ # Ubuntu
+ RCYNIC_HTML_DIR='/var/www/rcynic'
+ fi
;;
*)
RCYNIC_HTML_DIR=''