diff options
author | startxfr <clarue@startx.fr> | 2014-12-10 00:23:13 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-12-10 00:23:13 +0100 |
commit | b16fb60aebdc648c3811413f0f2e5b8b6fb3cf31 (patch) | |
tree | 157b4469db7a2ecafadb5bcb780e92ff11fc62be /Services/apache/sx/httpd.sh | |
parent | 76fbe43a8e1cb13cfe4a24bb78ac510a13c85651 (diff) | |
download | phpmyadmin-b16fb60aebdc648c3811413f0f2e5b8b6fb3cf31.tar.gz phpmyadmin-b16fb60aebdc648c3811413f0f2e5b8b6fb3cf31.tar.bz2 phpmyadmin-b16fb60aebdc648c3811413f0f2e5b8b6fb3cf31.tar.xz phpmyadmin-b16fb60aebdc648c3811413f0f2e5b8b6fb3cf31.zip |
ajout d'un titre affiché dans github + mis een palce var d'env pour apache
Diffstat (limited to 'Services/apache/sx/httpd.sh')
-rw-r--r-- | Services/apache/sx/httpd.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |