[survey-web/oscp] Revert "Actually drop \g as we only have one single variable to substitute, might that be the culpri



commit e659799d0b00a24bb4def5bdd0ff08fc50fb89df
Author: Andrea Veri <averi redhat com>
Date:   Fri May 3 19:10:38 2019 +0200

    Revert "Actually drop \g as we only have one single variable to substitute, might that be the culprit?"
    
    This reverts commit 8ee271ceaac1b3622059566f6a19631b38932368.
    
    The problem was actually related to echo adding a \n while
    encoding the password with base64.

 docker/run.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/docker/run.sh b/docker/run.sh
index 8904658..e9fb4bb 100755
--- a/docker/run.sh
+++ b/docker/run.sh
@@ -5,10 +5,10 @@ config=/app/limesurvey/application/config/config.php
 echo -ne "Configuring limesurvey database config file..."
 if [ -f $config ]
 then
-    sed -i -e "s/MYSQL_USER/$MYSQL_USER/" $config
-    sed -i -e "s/MYSQL_PASSWORD/$MYSQL_PASSWORD/" $config
-    sed -i -e "s/MYSQL_DATABASE_HOST/$MYSQL_DATABASE_HOST/" $config
-    sed -i -e "s/MYSQL_DATABASE_NAME/$MYSQL_DATABASE_NAME/" $config
+    sed -i -e "s/MYSQL_USER/$MYSQL_USER/g" $config
+    sed -i -e "s/MYSQL_PASSWORD/$MYSQL_PASSWORD/g" $config
+    sed -i -e "s/MYSQL_DATABASE_HOST/$MYSQL_DATABASE_HOST/g" $config
+    sed -i -e "s/MYSQL_DATABASE_NAME/$MYSQL_DATABASE_NAME/g" $config
 
     echo OK
 else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]