James McMurry writes:
> Enter new superuser password:
> Enter it again:
> The password file wasn't generated. Please report this problem.
Please apply to following patch to src/bin/initdb.sh:
diff -c -r1.118 initdb.sh
*** initdb.sh 2000/12/31 22:24:14 1.118
--- initdb.sh 2001/01/04 16:10:43
***************
*** 533,539 ****
fi
echo "ALTER USER \"$POSTGRES_SUPERUSERNAME\" WITH PASSWORD '$FirstPw'" \
| "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely
! if [ ! -f $PGDATA/pg_pwd ]; then
echo "The password file wasn't generated. Please report this problem." 1>&2
exit_nicely
fi
--- 533,539 ----
fi
echo "ALTER USER \"$POSTGRES_SUPERUSERNAME\" WITH PASSWORD '$FirstPw'" \
| "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely
! if [ ! -f $PGDATA/global/pg_pwd ]; then
echo "The password file wasn't generated. Please report this problem." 1>&2
exit_nicely
fi
Or you can just set the superuser password later if you're not up to
patching.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/