From cb01aa21d8a8223fba9e8b99834009da6014dd4d Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 18 Oct 2012 15:49:46 +0200 Subject: [PATCH] pgtest.sh: Changed PostgreSQL port to 2345. This is somewhat related to the default port (5432) but we can probably be fairly sure this is not used otherwise. --- pgtest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pgtest.sh b/pgtest.sh index a22d93a..546d2db 100755 --- a/pgtest.sh +++ b/pgtest.sh @@ -53,12 +53,12 @@ case "$1" in mkdir -p $TARGET/var/run/postgresql mkdir -p $TARGET/var/log/postgresql/main $BIN_DIR/initdb -D $TARGET/var/lib/postgresql/main - sed -r -i -e 's/^#port = 5432/port = 5435/' \ + sed -r -i -e 's/^#port = 5432/port = 2345/' \ $TARGET/var/lib/postgresql/main/postgresql.conf sed -r -i -e "s/^#dynamic_library_path = '\\\$libdir'/dynamic_library_path = '\$libdir:$PWD_esc\/src'/" $TARGET/var/lib/postgresql/main/postgresql.conf sed -r -i -e "s/^#unix_socket_directory = ''/unix_socket_directory = '$TARGET_esc\/var\/run\/postgresql'/" $TARGET/var/lib/postgresql/main/postgresql.conf $0 start -B - $BIN_DIR/createdb -e -h $TARGET/var/run/postgresql/ -p 5435 "$( id -un )" + $BIN_DIR/createdb -e -h $TARGET/var/run/postgresql/ -p 2345 "$( id -un )" $0 stop ;; client) @@ -72,7 +72,7 @@ case "$1" in fi fi shift - $BIN_DIR/psql -h $TARGET/var/run/postgresql/ -p 5435 "$@" + $BIN_DIR/psql -h $TARGET/var/run/postgresql/ -p 2345 "$@" ;; stop) if test $# -ne 1; then -- 2.30.2