]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.init
- use apache.conf by default
[packages/apache.git] / apache.init
index ffd4c90f2544ba68f6088cc566a6dd0a3bb010cd..0ca66211ac8734f1c2bb485c906e00b9921a13d9 100644 (file)
@@ -32,13 +32,14 @@ else
 fi
 
 [ -z "$HTTPD_MPM" ] && HTTPD_MPM="prefork"
-if [ -d "${HTTPD_CONF:-'/etc/httpd/httpd.conf'}" ]; then
-       CFG="-f ${HTTPD_CONF:-'/etc/httpd/httpd.conf'}"
-elif [ -n "$HTTPD_CONF" ]; then
-       echo "error: HTTPD_CONF='$HTTPD_CONF': not a file, not a directory"
-       exit 1
-else
-       CFG=""
+
+if [ -n "${HTTPD_CONF}" ]; then
+       if [ -d "${HTTPD_CONF}" ] || [ -f "${HTTPD_CONF}" ]; then
+               CFG="-f ${HTTPD_CONF}"
+       else
+               echo "error: HTTPD_CONF='$HTTPD_CONF': not a file, not a directory"
+               exit 1
+       fi
 fi
 
 RETVAL=0
This page took 0.029965 seconds and 4 git commands to generate.