forked from mirrors/nixpkgs
Revert "Create the 'postgres' superuser"
Reverting postgres superuser changes until after stable.
This reverts commit 7de29bd26f
.
This commit is contained in:
parent
c23050e231
commit
e9e60103de
|
@ -197,7 +197,6 @@ in
|
|||
fi
|
||||
rm -f ${cfg.dataDir}/*.conf
|
||||
touch "${cfg.dataDir}/.first_startup"
|
||||
touch "${cfg.dataDir}/postgresql-user-created"
|
||||
fi
|
||||
|
||||
ln -sfn "${configFile}" "${cfg.dataDir}/postgresql.conf"
|
||||
|
@ -231,11 +230,6 @@ in
|
|||
sleep 0.1
|
||||
done
|
||||
|
||||
if ! [ -e ${cfg.dataDir}/postgresql-user-created ]; then
|
||||
createuser --superuser postgres
|
||||
touch ${cfg.dataDir}/postgresql-user-created
|
||||
fi
|
||||
|
||||
if test -e "${cfg.dataDir}/.first_startup"; then
|
||||
${optionalString (cfg.initialScript != null) ''
|
||||
cat "${cfg.initialScript}" | su -s ${pkgs.stdenv.shell} postgres -c 'psql postgres'
|
||||
|
|
Loading…
Reference in a new issue