mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
nixos/postgresql: Fix execution of initialScript.
Regression introduced byb21fd5d066. 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> (cherry picked from commit60d407b209)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user