diff options
author | Shea Levy <shea@shealevy.com> | 2014-03-15 13:29:52 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-03-15 13:29:52 -0400 |
commit | 6cc0cc7ff6136963acb32b5107696484b6220562 (patch) | |
tree | cceccab12f3d239eb7bacebe311fa11906f7238f /nixos/modules/services/databases | |
parent | 3c4be425dbe2d5a00f2923210a86ce7e7a4c516f (diff) | |
parent | 2ea7c908390a0828c8fbfabca70889a78122437f (diff) | |
download | nixlib-6cc0cc7ff6136963acb32b5107696484b6220562.tar nixlib-6cc0cc7ff6136963acb32b5107696484b6220562.tar.gz nixlib-6cc0cc7ff6136963acb32b5107696484b6220562.tar.bz2 nixlib-6cc0cc7ff6136963acb32b5107696484b6220562.tar.lz nixlib-6cc0cc7ff6136963acb32b5107696484b6220562.tar.xz nixlib-6cc0cc7ff6136963acb32b5107696484b6220562.tar.zst nixlib-6cc0cc7ff6136963acb32b5107696484b6220562.zip |
Merge branch 'postgresql-user' of git://github.com/ocharles/nixpkgs
postgresql module: Use the default superuser username
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r-- | nixos/modules/services/databases/postgresql.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix index cc4230d4d6a7..a83b1a110fed 100644 --- a/nixos/modules/services/databases/postgresql.nix +++ b/nixos/modules/services/databases/postgresql.nix @@ -190,7 +190,7 @@ in mkdir -m 0700 -p ${cfg.dataDir} if [ "$(id -u)" = 0 ]; then chown -R postgres ${cfg.dataDir} - su -s ${pkgs.stdenv.shell} postgres -c 'initdb -U root' + su -s ${pkgs.stdenv.shell} postgres -c initdb else # For non-root operation. initdb |