From 7844264571d8397aab769cf9cffc5e6691d877b9 Mon Sep 17 00:00:00 2001 From: Samuel Fawaz Date: Fri, 3 Aug 2012 23:39:03 +0200 Subject: [PATCH] database configuration does not work when choosing PgSQL --- script/install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/install.sh b/script/install.sh index 23d861827..e01b835b3 100755 --- a/script/install.sh +++ b/script/install.sh @@ -317,8 +317,8 @@ database_question() { PgSQL ) D_DB="postgres" # replace default with postgres - run_or_error "sed -i'' -r 's/(<<: \*mysql)/#\1/g' \"$D_DB_CONFIG_FILE\"" - run_or_error "sed -i'' -r 's/(#(<<: \*postgres))/\2/g' \"$D_DB_CONFIG_FILE\"" + run_or_error "sed -i'' -r 's/\(<<: \*mysql\)/#\1/g' \"$D_DB_CONFIG_FILE\"" + run_or_error "sed -i'' -r 's/\(#\(<<: \*postgres\)\)/\2/g' \"$D_DB_CONFIG_FILE\"" break ;; esac @@ -331,9 +331,9 @@ database_credentials() { read -e -p "username: " D_DB_USER read -e -p "password: " D_DB_PASS - run_or_error "sed -i'' -r \"s/(host:)[^\n]*/\1 $D_DB_HOST/g\" \"$D_DB_CONFIG_FILE\"" - run_or_error "sed -i'' -r \"s/(username:)[^\n]*/\1 $D_DB_USER/g\" \"$D_DB_CONFIG_FILE\"" - run_or_error "sed -i'' -r \"s/(password:)[^\n]*/\1 $D_DB_PASS/g\" \"$D_DB_CONFIG_FILE\"" + run_or_error "sed -i'' -r \"s/\(host:\)[^\n]*/\1 $D_DB_HOST/g\" \"$D_DB_CONFIG_FILE\"" + run_or_error "sed -i'' -r \"s/\(username:\)[^\n]*/\1 $D_DB_USER/g\" \"$D_DB_CONFIG_FILE\"" + run_or_error "sed -i'' -r \"s/\(password:\)[^\n]*/\1 $D_DB_PASS/g\" \"$D_DB_CONFIG_FILE\"" } # setup database