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:
aszlig 2015-10-25 16:02:11 +01:00
parent 9a4adc8e92
commit 60d407b209
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -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"