Correct path where to check for password file existance.
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Jan 2001 17:25:09 +0000 (17:25 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Jan 2001 17:25:09 +0000 (17:25 +0000)
src/bin/initdb/initdb.sh

index 7f7e9f462533535e7a5fcbab633fe35d02719bfb..0b01716f49ee63bc3f970413cd44adece59ea5c6 100644 (file)
@@ -533,7 +533,7 @@ if [ "$PwPrompt" ]; then
     fi
     echo "ALTER USER \"$POSTGRES_SUPERUSERNAME\" WITH PASSWORD '$FirstPw'" \
        | "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely
-    if [ ! -f $PGDATA/pg_pwd ]; then
+    if [ ! -f $PGDATA/global/pg_pwd ]; then
         echo "The password file wasn't generated. Please report this problem." 1>&2
         exit_nicely
     fi