forked from mirrors/nixpkgs
postgresql service: initialScript fixup
This commit is contained in:
parent
929b0d99c1
commit
fb6ea3dead
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ in
|
|||
|
||||
if test -e "${cfg.dataDir}/.first_startup"; then
|
||||
${optionalString (cfg.initialScript != null) ''
|
||||
cat "${cfg.initialScript}" | psql --port=${toString cfg.port} postgres
|
||||
psql -f "${cfg.initialScript}" --port=${toString cfg.port} postgres
|
||||
''}
|
||||
rm -f "${cfg.dataDir}/.first_startup"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue