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:
@@ -202,6 +202,8 @@ in
|
|||||||
# For non-root operation.
|
# For non-root operation.
|
||||||
initdb
|
initdb
|
||||||
fi
|
fi
|
||||||
|
# See postStart!
|
||||||
|
touch "${cfg.dataDir}/.first_startup"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sfn "${configFile}" "${cfg.dataDir}/postgresql.conf"
|
ln -sfn "${configFile}" "${cfg.dataDir}/postgresql.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user