db agnostic
This commit is contained in:
10
init-postgres.sh
Executable file
10
init-postgres.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o nounset
|
||||
|
||||
if [[ ! -e "./pgdata" ]] ; then
|
||||
initdb --locale=C.UTF-8 --encoding=UTF8 -D './pgdata' --user postgres
|
||||
mkdir ./pgdata/run
|
||||
fi
|
||||
|
||||
postgres -D ./pgdata -k run -h ""
|
||||
Reference in New Issue
Block a user