Merge branch 'postgresql-user' of git://github.com/ocharles/nixpkgs
postgresql module: Use the default superuser username
This commit is contained in:
commit
6cc0cc7ff6
@ -190,7 +190,7 @@ in
|
|||||||
mkdir -m 0700 -p ${cfg.dataDir}
|
mkdir -m 0700 -p ${cfg.dataDir}
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
chown -R postgres ${cfg.dataDir}
|
chown -R postgres ${cfg.dataDir}
|
||||||
su -s ${pkgs.stdenv.shell} postgres -c 'initdb -U root'
|
su -s ${pkgs.stdenv.shell} postgres -c initdb
|
||||||
else
|
else
|
||||||
# For non-root operation.
|
# For non-root operation.
|
||||||
initdb
|
initdb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user