summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1999-12-18 03:21:21 +0000
committerBruce Momjian1999-12-18 03:21:21 +0000
commitf08e8ae7cbb5ee147768ca76bf22853a4c7df6d1 (patch)
tree5404041b8bb00a529cb957f820f2ad8840aa1bd7
parenta08eb45c527d36a2e4765a02b44dca04cc8776bf (diff)
initdb cleanup
-rw-r--r--src/bin/initdb/initdb.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh
index c608e6c070c..ca9c1a18a4c 100644
--- a/src/bin/initdb/initdb.sh
+++ b/src/bin/initdb/initdb.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-#set -x
+set -x
#-------------------------------------------------------------------------
#
# initdb.sh--
@@ -27,7 +27,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.72 1999/12/18 02:56:01 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.73 1999/12/18 03:21:21 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -322,7 +322,8 @@ TEMPLATE_DESCR="$PGLIB"/local1_template1.description
GLOBAL_DESCR="$PGLIB"/global1.description
PG_GEQO_SAMPLE="$PGLIB"/pg_geqo.sample
-for PREREQ_FILE in "$TEMPLATE" "$GLOBAL" "$PG_HBA_SAMPLE"; do
+for PREREQ_FILE in "$TEMPLATE" "$GLOBAL" "$PG_HBA_SAMPLE"
+do
if [ ! -f "$PREREQ_FILE" ]
then
echo "$CMDNAME does not find the file '$PREREQ_FILE'."
@@ -338,9 +339,9 @@ if [ "$template_only" -eq 0 ]
then
[ "$debug" -ne 0 ] && echo "$CMDNAME: Using $GLOBAL as input to create the global classes."
[ "$debug" -ne 0 ] && echo "$CMDNAME: Using $PG_HBA_SAMPLE as default authentication control file."
-fi
+fi
-trap 'echo "Caught signal." ; exit_nicely' SIGINT SIGTERM
+trap 'echo "Caught signal." ; exit_nicely' 1 2 3 15
# -----------------------------------------------------------------------