Commit 620f0146 authored by Bryan Henderson's avatar Bryan Henderson

Fix syntax errors so it runs without error messages.

parent aef61633
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.5 1996/11/14 10:24:46 bryanh Exp $ # $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.6 1996/11/17 03:54:44 bryanh Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -42,27 +42,27 @@ do ...@@ -42,27 +42,27 @@ do
shift; shift;
done done
if [-z "$AUTHSYS" ]; then if [ -z "$AUTHSYS" ]; then
AUTHOPT = "" AUTHOPT=""
else else
AUTHOPT = "-a $AUTHSYS" AUTHOPT="-a $AUTHSYS"
fi fi
if [-z "$PGHOST" ]; then if [ -z "$PGHOST" ]; then
PGHOSTOPT = "" PGHOSTOPT=""
else else
PGHOSTOPT = "-h $PGHOST" PGHOSTOPT="-h $PGHOST"
fi fi
if [-z "$PGPORT" ]; then if [ -z "$PGPORT" ]; then
PGPORTOPT = "" PGPORTOPT=""
else else
PGPORTOPT = "-p $PGPORT" PGPORTOPT="-p $PGPORT"
fi fi
psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "create database $dbname" template1 psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "create database $dbname" template1
if [ $? -ne 0 ] if [ $? -ne 0 ]; then
echo "$CMDNAME: database creation failed on $dbname." echo "$CMDNAME: database creation failed on $dbname."
exit 1 exit 1
fi fi
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.6 1996/11/14 10:24:54 bryanh Exp $ # $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.7 1996/11/17 03:54:54 bryanh Exp $
# #
# Note - this should NOT be setuid. # Note - this should NOT be setuid.
# #
...@@ -39,25 +39,25 @@ do ...@@ -39,25 +39,25 @@ do
shift; shift;
done done
if [-z "$AUTHSYS" ]; then if [ -z "$AUTHSYS" ]; then
AUTHOPT = "" AUTHOPT=""
else else
AUTHOPT = "-a $AUTHSYS" AUTHOPT="-a $AUTHSYS"
fi fi
if [-z "$PGHOST" ]; then if [ -z "$PGHOST" ]; then
PGHOSTOPT = "" PGHOSTOPT=""
else else
PGHOSTOPT = "-h $PGHOST" PGHOSTOPT="-h $PGHOST"
fi fi
if [-z "$PGPORT" ]; then if [ -z "$PGPORT" ]; then
PGPORTOPT = "" PGPORTOPT=""
else else
PGPORTOPT = "-p $PGPORT" PGPORTOPT="-p $PGPORT"
fi fi
PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT"
# #
# generate the first part of the actual monitor command # generate the first part of the actual monitor command
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.5 1996/11/14 10:25:14 bryanh Exp $ # $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.6 1996/11/17 03:54:58 bryanh Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -42,22 +42,22 @@ do ...@@ -42,22 +42,22 @@ do
shift; shift;
done done
if [-z "$AUTHSYS" ]; then if [ -z "$AUTHSYS" ]; then
AUTHOPT = "" AUTHOPT=""
else else
AUTHOPT = "-a $AUTHSYS" AUTHOPT="-a $AUTHSYS"
fi fi
if [-z "$PGHOST" ]; then if [ -z "$PGHOST" ]; then
PGHOSTOPT = "" PGHOSTOPT=""
else else
PGHOSTOPT = "-h $PGHOST" PGHOSTOPT="-h $PGHOST"
fi fi
if [-z "$PGPORT" ]; then if [ -z "$PGPORT" ]; then
PGPORTOPT = "" PGPORTOPT=""
else else
PGPORTOPT = "-p $PGPORT" PGPORTOPT="-p $PGPORT"
fi fi
psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "drop database $dbname" template1 psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "drop database $dbname" template1
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.5 1996/11/14 10:25:19 bryanh Exp $ # $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.6 1996/11/17 03:55:07 bryanh Exp $
# #
# Note - this should NOT be setuid. # Note - this should NOT be setuid.
# #
...@@ -39,25 +39,25 @@ do ...@@ -39,25 +39,25 @@ do
shift; shift;
done done
if [-z "$AUTHSYS" ]; then if [ -z "$AUTHSYS" ]; then
AUTHOPT = "" AUTHOPT=""
else else
AUTHOPT = "-a $AUTHSYS" AUTHOPT="-a $AUTHSYS"
fi fi
if [-z "$PGHOST" ]; then if [ -z "$PGHOST" ]; then
PGHOSTOPT = "" PGHOSTOPT=""
else else
PGHOSTOPT = "-h $PGHOST" PGHOSTOPT="-h $PGHOST"
fi fi
if [-z "$PGPORT" ]; then if [ -z "$PGPORT" ]; then
PGPORTOPT = "" PGPORTOPT=""
else else
PGPORTOPT = "-p $PGPORT" PGPORTOPT="-p $PGPORT"
fi fi
PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT"
# #
# generate the first part of the actual monitor command # generate the first part of the actual monitor command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment