Code

pgtest.sh: Changed PostgreSQL port to 2345.
authorSebastian Harl <sh@tokkee.org>
Thu, 18 Oct 2012 13:49:46 +0000 (15:49 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 18 Oct 2012 13:49:46 +0000 (15:49 +0200)
This is somewhat related to the default port (5432) but we can probably be
fairly sure this is not used otherwise.

pgtest.sh

index a22d93a279577ff53fb7408bb879ab4f4d033dbe..546d2db4eb5c882256d0b966b86509dcb83e6136 100755 (executable)
--- 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