|
23 | 23 | #
|
24 | 24 | # Copyright (c) 1994, Regents of the University of California
|
25 | 25 | #
|
26 |
| -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.108 2000/10/29 11:36:44 petere Exp $ |
| 26 | +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.109 2000/11/02 19:48:39 petere Exp $ |
27 | 27 | #
|
28 | 28 | #-------------------------------------------------------------------------
|
29 | 29 |
|
@@ -321,16 +321,6 @@ then
|
321 | 321 | exit 1
|
322 | 322 | fi
|
323 | 323 |
|
324 |
| -# The data path must be absolute, because the backend doesn't like |
325 |
| -# '.' and '..' stuff. (Should perhaps be fixed there.) |
326 |
| - |
327 |
| -echo"$PGDATA"| grep'^/'> /dev/null2>&1 |
328 |
| -if ["$?"-ne 0 ] |
329 |
| -then |
330 |
| -echo"$CMDNAME: data path must be specified as an absolute path" |
331 |
| -exit 1 |
332 |
| -fi |
333 |
| - |
334 | 324 |
|
335 | 325 | #-------------------------------------------------------------------------
|
336 | 326 | # Find the input files
|
@@ -434,6 +424,11 @@ else
|
434 | 424 | fi
|
435 | 425 | fi
|
436 | 426 |
|
| 427 | +# Be sure that PGDATA is an absolute path, otherwise backend croaks. |
| 428 | + |
| 429 | +unset CDPATH |
| 430 | +PGDATA=`cd$PGDATA&& pwd` |
| 431 | + |
437 | 432 |
|
438 | 433 | ##########################################################################
|
439 | 434 | #
|
|