--- a/build/drupal/installDrupal.sh Thu Jan 19 13:53:17 2017 +0100
+++ b/build/drupal/installDrupal.sh Tue Jan 31 19:05:12 2017 +0100
@@ -99,14 +99,14 @@
echo ""
echo "Mise à jour du fichier de configuation de drupal"
echo "-----------------------------------------------------"
- echo "sed -E \"... database => $DBNAME \" sites/default/settings.php"
- sed -e '' -E "s/^([[:space:]]+[\'\"]database[\'\"][[:space:]]+\=\>[[:space:]]+)([\'\"]).*[\'\"](.*)$/\1\2$DBNAME\2\3/" sites/default/settings.php
- echo "sed -E \"... username => $DBUSER \" sites/default/settings.php"
- sed -e '' -E "s/^([[:space:]]+[\'\"]username[\'\"][[:space:]]+\=\>[[:space:]]+)([\'\"]).*[\'\"](.*)$/\1\2$DBUSER\2\3/" sites/default/settings.php
- echo "sed -E \"... password => $DBPASS \" sites/default/settings.php"
- sed -e '' -E "s/^([[:space:]]+[\'\"]password[\'\"][[:space:]]+\=\>[[:space:]]+)([\'\"]).*[\'\"](.*)$/\1\2$DBPASS\2\3/" sites/default/settings.php
- echo "sed -E \"... host => $DBSERV \" sites/default/settings.php"
- sed -e '' -E "s/^([[:space:]]+[\'\"]host[\'\"][[:space:]]+\=\>[[:space:]]+)([\'\"]).*[\'\"](.*)$/\1\2$DBSERV\2\3/" sites/default/settings.php
+ echo "sed -r \"... database => $DBNAME \" sites/default/settings.php"
+ sed -r -i "s/^(\s+[\'\"]database[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBNAME\2\3/" sites/default/settings.php
+ echo "sed -r \"... username => $DBUSER \" sites/default/settings.php"
+ sed -r -i "s/^(\s+[\'\"]username[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBUSER\2\3/" sites/default/settings.php
+ echo "sed -r \"... password => $DBPASS \" sites/default/settings.php"
+ sed -r -i "s/^(\s+[\'\"]password[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBPASS\2\3/" sites/default/settings.php
+ echo "sed -r \"... host => $DBSERV \" sites/default/settings.php"
+ sed -r -i "s/^(\s+[\'\"]host[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBSERV\2\3/" sites/default/settings.php
echo "Vidage des caches Drupal"
echo "-----------------------------------------------------"