From 53edd82909c6784c80f08ec739bd2e0995d7ce72 Mon Sep 17 00:00:00 2001
From: startxfr <clarue@startx.fr>
Date: Sun, 12 Jun 2016 10:45:18 +0200
Subject: change for config pma

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

(limited to 'Services/apache')

diff --git a/Services/apache/sx-httpd.sh b/Services/apache/sx-httpd.sh
index 707b16d..b404dd6 100644
--- a/Services/apache/sx-httpd.sh
+++ b/Services/apache/sx-httpd.sh
@@ -75,3 +75,22 @@ function start_service_httpd {
       tail -f /dev/null & wait ${!}
     done
 }
+
+
+
+# set env var $2 (val $3) in file $1
+function setEnvironmentVariableInFile {
+    if [ -z "$3" ]; then
+            echo "Environment variable '$2' not set."
+            return
+    fi
+    echo "SetEnv $2 $3" >> $1
+}
+
+
+function setSys2HttpEnvironmentVariable {
+    echo "" >> $1
+    for _curVar in `env | awk -F = '{print $1}'`;do
+        setEnvironmentVariableInFile $1 ${_curVar} ${!_curVar}
+    done
+}
\ No newline at end of file
-- 
cgit v1.2.3