From b3f714e502c02bda1e867e1de38afaf6f8fd4eb5 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 14 Oct 2012 23:17:30 +0200 Subject: [PATCH] pgtest.sh: 'setup': Create database for the current user. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … rather than using a hard-coded value. --- pgtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgtest.sh b/pgtest.sh index 692de5e..a22d93a 100755 --- a/pgtest.sh +++ b/pgtest.sh @@ -58,7 +58,7 @@ case "$1" in 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 tokkee + $BIN_DIR/createdb -e -h $TARGET/var/run/postgresql/ -p 5435 "$( id -un )" $0 stop ;; client) -- 2.30.2