forked from mirrors/nixpkgs
Merge pull request #283080 from marsam/postgresql-test-hook-settings
postgresqlTestHook: add postgresqlExtraSettings variable
This commit is contained in:
commit
1be8478d00
|
@ -45,6 +45,7 @@ Bash-only variables:
|
|||
- `postgresqlTestSetupCommands`: bash commands to run after database start, defaults to running `$postgresqlTestSetupSQL` as database administrator.
|
||||
- `postgresqlEnableTCP`: set to `1` to enable TCP listening. Flaky; not recommended.
|
||||
- `postgresqlStartCommands`: defaults to `pg_ctl start`.
|
||||
- `postgresqlExtraSettings`: Additional configuration to add to `postgresql.conf`
|
||||
|
||||
## Hooks {#sec-postgresqlTestHook-hooks}
|
||||
|
||||
|
|
|
@ -56,6 +56,8 @@ EOF
|
|||
echo 'initializing postgresql'
|
||||
initdb -U postgres
|
||||
|
||||
echo "$postgresqlExtraSettings" >>"$PGDATA/postgresql.conf"
|
||||
|
||||
# Move the socket
|
||||
echo "unix_socket_directories = '$NIX_BUILD_TOP/run/postgresql'" >>"$PGDATA/postgresql.conf"
|
||||
|
||||
|
|
Loading…
Reference in a new issue