mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
Revert "Merge branch 'postgresql-user' of git://github.com/ocharles/nixpkgs"
Reverting postgres superuser changes until after stable. This reverts commit6cc0cc7ff6
, reversing changes made to3c4be425db
.
This commit is contained in:
parent
9b077bac58
commit
0122697550
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
su -s ${pkgs.stdenv.shell} postgres -c 'initdb -U root'
|
||||
else
|
||||
# For non-root operation.
|
||||
initdb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue