From: Sebastian Harl Date: Thu, 18 Oct 2012 13:49:46 +0000 (+0200) Subject: pgtest.sh: Changed PostgreSQL port to 2345. X-Git-Url: https://git.tokkee.org/?p=postrr.git;a=commitdiff_plain;h=cb01aa21d8a8223fba9e8b99834009da6014dd4d 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. --- 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