From: Sebastian Harl Date: Sun, 14 Oct 2012 21:17:30 +0000 (+0200) Subject: pgtest.sh: 'setup': Create database for the current user. X-Git-Url: https://git.tokkee.org/?p=postrr.git;a=commitdiff_plain;h=b3f714e502c02bda1e867e1de38afaf6f8fd4eb5 pgtest.sh: 'setup': Create database for the current user. … rather than using a hard-coded value. --- 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)