From b8205920fb9c0864bc84e06b47e5a7a860fd2120 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Mon, 18 Mar 2013 22:39:12 +0000 Subject: test for existance of /var/www/html which is DocumentRoot on RHEL/CentOS svn path=/trunk/; revision=5170 --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.ac') 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='' -- cgit v1.2.3