summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3f714e)
raw | patch | inline | side by side (parent: b3f714e)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 18 Oct 2012 13:49:46 +0000 (15:49 +0200) | ||
committer | Sebastian 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.
fairly sure this is not used otherwise.
pgtest.sh | patch | blob | history |
diff --git a/pgtest.sh b/pgtest.sh
index a22d93a279577ff53fb7408bb879ab4f4d033dbe..546d2db4eb5c882256d0b966b86509dcb83e6136 100755 (executable)
--- a/pgtest.sh
+++ b/pgtest.sh
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)
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