don't use extended regexp for sed (not needed)

This commit is contained in:
Florian Staudacher 2012-08-05 13:39:30 +02:00
parent 3d7f641239
commit 0c340d8056

View file

@ -317,8 +317,8 @@ database_question() {
PgSQL ) PgSQL )
D_DB="postgres" D_DB="postgres"
# replace default with postgres # replace default with postgres
run_or_error "sed -i'' -r 's/\(<<: \*mysql\)/#\1/g' \"$D_DB_CONFIG_FILE\"" run_or_error "sed -i'' -e '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'' -e 's/\(#\(<<: \*postgres\)\)/\2/g' \"$D_DB_CONFIG_FILE\""
break break
;; ;;
esac esac
@ -331,9 +331,9 @@ database_credentials() {
read -e -p "username: " D_DB_USER read -e -p "username: " D_DB_USER
read -e -p "password: " D_DB_PASS 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'' -e \"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'' -e \"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'' -e \"s/\(password:\)[^\n]*/\1 $D_DB_PASS/g\" \"$D_DB_CONFIG_FILE\""
} }
# setup database # setup database