|
8 | 8 | # |
9 | 9 | # |
10 | 10 | # IDENTIFICATION |
11 | | -# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.35 2003/08/04 23:59:39 tgl Exp $ |
| 11 | +# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.36 2003/08/14 18:56:41 tgl Exp $ |
12 | 12 | # |
13 | 13 | #------------------------------------------------------------------------- |
14 | 14 |
|
@@ -371,10 +371,10 @@ if [ "$op" = "start" -o "$op" = "restart" ];then |
371 | 371 |
|
372 | 372 | # Attempt to use the right port |
373 | 373 | # Use PGPORT if set, otherwise look in the configuration file |
374 | | -if [-z$PGPORT ];then |
| 374 | +if [-z"$PGPORT" ];then |
375 | 375 | PGPORT=`sed -ne's/^[ ]*port[^=]*=[ ]\+\([0-9]\+\).*/\1/p'$CONFFILE2>/dev/null` |
376 | | -if [-z$PGPORT ];then |
377 | | - PGPORT=$DEF_PGPORT |
| 376 | +if [-z"$PGPORT" ];then |
| 377 | + PGPORT="$DEF_PGPORT" |
378 | 378 | fi |
379 | 379 | fi |
380 | 380 |
|
|