diff options
author | Danylo Hlynskyi <abcz2.uprola@gmail.com> | 2019-08-07 14:17:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-07 14:17:36 +0300 |
commit | 0730e81785e3bd4342df9c53d07618659b8249a7 (patch) | |
tree | c12c367c7fac8ad1ddf19838430c415c7e236872 /nixos/modules/services | |
parent | b1d00b71b6dcf0d16bd0467d33ac09a70fb63387 (diff) | |
download | nixlib-0730e81785e3bd4342df9c53d07618659b8249a7.tar nixlib-0730e81785e3bd4342df9c53d07618659b8249a7.tar.gz nixlib-0730e81785e3bd4342df9c53d07618659b8249a7.tar.bz2 nixlib-0730e81785e3bd4342df9c53d07618659b8249a7.tar.lz nixlib-0730e81785e3bd4342df9c53d07618659b8249a7.tar.xz nixlib-0730e81785e3bd4342df9c53d07618659b8249a7.tar.zst nixlib-0730e81785e3bd4342df9c53d07618659b8249a7.zip |
postgresql: running `initdb` from command line now works (#65309)
The issue was only with NixOS service, `postgresql` installed through `nix-env` was not affected. Fixes https://github.com/NixOS/nixpkgs/issues/23655
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/databases/postgresql.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix index 37d44e30fbeb..7ff899970ccd 100644 --- a/nixos/modules/services/databases/postgresql.nix +++ b/nixos/modules/services/databases/postgresql.nix @@ -251,6 +251,10 @@ in environment.systemPackages = [ postgresql ]; + environment.pathsToLink = [ + "/share/postgresql" + ]; + systemd.services.postgresql = { description = "PostgreSQL Server"; |