Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 282861a

Browse files
committed
initdb didn't always remove temp file
1 parent f46c1f1 commit 282861a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/bin/initdb/initdb.sh

+3-9
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.90 2000/04/08 18:35:29 momjian Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.91 2000/04/25 08:29:02 petere Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -476,10 +476,7 @@ then
476476
"$PGPATH"/postgres $BACKENDARGS template1 < "$TEMPFILE"
477477
# Gotta remove that temp file before exiting on error.
478478
retval="$?"
479-
if [ "$noclean" -eq 0 ]
480-
then
481-
rm -f "$TEMPFILE" || exit_nicely
482-
fi
479+
rm -f "$TEMPFILE" || exit_nicely
483480
[ "$retval" -ne 0 ] && exit_nicely
484481
fi
485482

@@ -596,10 +593,7 @@ cat "$GLOBAL_DESCR" >> $TEMPFILE
596593

597594
cat $TEMPFILE \
598595
| "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely
599-
if [ "$noclean" -eq 0 ]
600-
then
601-
rm -f "$TEMPFILE" || exit_nicely
602-
fi
596+
rm -f "$TEMPFILE" || exit_nicely
603597

604598
echo "Vacuuming database."
605599
echo "VACUUM ANALYZE" \

0 commit comments

Comments
 (0)