From b16fb60aebdc648c3811413f0f2e5b8b6fb3cf31 Mon Sep 17 00:00:00 2001
From: startxfr <clarue@startx.fr>
Date: Wed, 10 Dec 2014 00:23:13 +0100
Subject: =?UTF-8?q?ajout=20d'un=20titre=20affich=C3=A9=20dans=20github=20+?=
 =?UTF-8?q?=20mis=20een=20palce=20var=20d'env=20pour=20apache?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Services/apache/sx/httpd.sh | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'Services/apache/sx/httpd.sh')

diff --git a/Services/apache/sx/httpd.sh b/Services/apache/sx/httpd.sh
index 04f08b4..0220984 100644
--- a/Services/apache/sx/httpd.sh
+++ b/Services/apache/sx/httpd.sh
@@ -1,12 +1,18 @@
 #!/bin/bash
 
 export TERM=dumb
+export HTTPDCONF=/etc/httpd/conf.d/sx.conf
 
 # Begin configuration before starting daemonized process
 # and start generating host keys
 function begin_config {
     echo "=> Begin httpd configuration for host $HOSTNAME"
     mkdir -p /var/run/httpd
+    if [ -z "$DOCROOT" ]; then
+        echo "===> Changing document root to $DOCROOT"
+        ${DOCROOT=/var/www/html}
+        echo "DocumentRoot \"$DOCROOT\"" >> $HTTPDCONF
+    fi
 }
 
 # End configuration process just before starting daemon
-- 
cgit v1.2.3