mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
nixos/postgresql: Fix execution of initialScript.
Regression introduced by b21fd5d066
.
The initialScript is only executed whenever there is a .first-startup in
the dataDir, so silently dropping the file essentially breaks
initialScript functionality.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
9a4adc8e92
commit
60d407b209
1 changed files with 2 additions and 0 deletions
|
@ -202,6 +202,8 @@ in
|
|||
# For non-root operation.
|
||||
initdb
|
||||
fi
|
||||
# See postStart!
|
||||
touch "${cfg.dataDir}/.first_startup"
|
||||
fi
|
||||
|
||||
ln -sfn "${configFile}" "${cfg.dataDir}/postgresql.conf"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue