11#! /bin/sh
2- # set -x
2+ set -x
33# -------------------------------------------------------------------------
44#
55# initdb.sh--
2727#
2828#
2929# IDENTIFICATION
30- # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.72 1999/12/1802:56:01 momjian Exp $
30+ # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.73 1999/12/1803:21:21 momjian Exp $
3131#
3232# -------------------------------------------------------------------------
3333
@@ -322,7 +322,8 @@ TEMPLATE_DESCR="$PGLIB"/local1_template1.description
322322GLOBAL_DESCR=" $PGLIB " /global1.description
323323PG_GEQO_SAMPLE=" $PGLIB " /pg_geqo.sample
324324
325- for PREREQ_FILE in " $TEMPLATE " " $GLOBAL " " $PG_HBA_SAMPLE " ; do
325+ for PREREQ_FILE in " $TEMPLATE " " $GLOBAL " " $PG_HBA_SAMPLE "
326+ do
326327if [! -f " $PREREQ_FILE " ]
327328then
328329echo " $CMDNAME does not find the file '$PREREQ_FILE '."
@@ -338,9 +339,9 @@ if [ "$template_only" -eq 0 ]
338339then
339340 [" $debug " -ne 0 ]&& echo " $CMDNAME : Using$GLOBAL as input to create the global classes."
340341 [" $debug " -ne 0 ]&& echo " $CMDNAME : Using$PG_HBA_SAMPLE as default authentication control file."
341- fi
342+ fi
342343
343- trap ' echo "Caught signal." ; exit_nicely' SIGINT SIGTERM
344+ trap ' echo "Caught signal." ; exit_nicely' 1 2 3 15
344345
345346
346347# -----------------------------------------------------------------------