#
#
# 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 $
#
#-------------------------------------------------------------------------
shift;
done
-if [-z "$AUTHSYS" ]; then
- AUTHOPT = ""
+if [ -z "$AUTHSYS" ]; then
+ AUTHOPT=""
else
- AUTHOPT = "-a $AUTHSYS"
+ AUTHOPT="-a $AUTHSYS"
fi
-if [-z "$PGHOST" ]; then
- PGHOSTOPT = ""
+if [ -z "$PGHOST" ]; then
+ PGHOSTOPT=""
else
- PGHOSTOPT = "-h $PGHOST"
+ PGHOSTOPT="-h $PGHOST"
fi
-if [-z "$PGPORT" ]; then
- PGPORTOPT = ""
+if [ -z "$PGPORT" ]; then
+ PGPORTOPT=""
else
- PGPORTOPT = "-p $PGPORT"
+ PGPORTOPT="-p $PGPORT"
fi
psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "create database $dbname" template1
-if [ $? -ne 0 ]
+if [ $? -ne 0 ]; then
echo "$CMDNAME: database creation failed on $dbname."
exit 1
fi
#
#
# 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.
#
shift;
done
-if [-z "$AUTHSYS" ]; then
- AUTHOPT = ""
+if [ -z "$AUTHSYS" ]; then
+ AUTHOPT=""
else
- AUTHOPT = "-a $AUTHSYS"
+ AUTHOPT="-a $AUTHSYS"
fi
-if [-z "$PGHOST" ]; then
- PGHOSTOPT = ""
+if [ -z "$PGHOST" ]; then
+ PGHOSTOPT=""
else
- PGHOSTOPT = "-h $PGHOST"
+ PGHOSTOPT="-h $PGHOST"
fi
-if [-z "$PGPORT" ]; then
- PGPORTOPT = ""
+if [ -z "$PGPORT" ]; then
+ PGPORTOPT=""
else
- PGPORTOPT = "-p $PGPORT"
+ PGPORTOPT="-p $PGPORT"
fi
-PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT
+PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT"
#
# generate the first part of the actual monitor command
#
#
# 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 $
#
#-------------------------------------------------------------------------
shift;
done
-if [-z "$AUTHSYS" ]; then
- AUTHOPT = ""
+if [ -z "$AUTHSYS" ]; then
+ AUTHOPT=""
else
- AUTHOPT = "-a $AUTHSYS"
+ AUTHOPT="-a $AUTHSYS"
fi
-if [-z "$PGHOST" ]; then
- PGHOSTOPT = ""
+if [ -z "$PGHOST" ]; then
+ PGHOSTOPT=""
else
- PGHOSTOPT = "-h $PGHOST"
+ PGHOSTOPT="-h $PGHOST"
fi
-if [-z "$PGPORT" ]; then
- PGPORTOPT = ""
+if [ -z "$PGPORT" ]; then
+ PGPORTOPT=""
else
- PGPORTOPT = "-p $PGPORT"
+ PGPORTOPT="-p $PGPORT"
fi
psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "drop database $dbname" template1
#
#
# 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.
#
shift;
done
-if [-z "$AUTHSYS" ]; then
- AUTHOPT = ""
+if [ -z "$AUTHSYS" ]; then
+ AUTHOPT=""
else
- AUTHOPT = "-a $AUTHSYS"
+ AUTHOPT="-a $AUTHSYS"
fi
-if [-z "$PGHOST" ]; then
- PGHOSTOPT = ""
+if [ -z "$PGHOST" ]; then
+ PGHOSTOPT=""
else
- PGHOSTOPT = "-h $PGHOST"
+ PGHOSTOPT="-h $PGHOST"
fi
-if [-z "$PGPORT" ]; then
- PGPORTOPT = ""
+if [ -z "$PGPORT" ]; then
+ PGPORTOPT=""
else
- PGPORTOPT = "-p $PGPORT"
+ PGPORTOPT="-p $PGPORT"
fi
-PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT
+PARGS="-tq $AUTHOPT $PGHOSTOPT $PGPORTOPT"
#
# generate the first part of the actual monitor command