mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nixos/postgresql: escape initdbArgs
It doesn't look correct that this isn't the case already.
This commit is contained in:
parent
0e78dc369c
commit
11d1f8776c
3 changed files with 6 additions and 3 deletions
|
@ -7,6 +7,7 @@ let
|
|||
concatStringsSep
|
||||
const
|
||||
elem
|
||||
escapeShellArgs
|
||||
filterAttrs
|
||||
isString
|
||||
literalExpression
|
||||
|
@ -545,7 +546,7 @@ in
|
|||
rm -f ${cfg.dataDir}/*.conf
|
||||
|
||||
# Initialise the database.
|
||||
initdb -U ${cfg.superUser} ${concatStringsSep " " cfg.initdbArgs}
|
||||
initdb -U ${cfg.superUser} ${escapeShellArgs cfg.initdbArgs}
|
||||
|
||||
# See postStart!
|
||||
touch "${cfg.dataDir}/.first_startup"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue