Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
620f0146
Commit
620f0146
authored
Nov 17, 1996
by
Bryan Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix syntax errors so it runs without error messages.
parent
aef61633
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
43 deletions
+43
-43
src/bin/createdb/createdb.sh
src/bin/createdb/createdb.sh
+11
-11
src/bin/createuser/createuser.sh
src/bin/createuser/createuser.sh
+11
-11
src/bin/destroydb/destroydb.sh
src/bin/destroydb/destroydb.sh
+10
-10
src/bin/destroyuser/destroyuser.sh
src/bin/destroyuser/destroyuser.sh
+11
-11
No files found.
src/bin/createdb/createdb.sh
View file @
620f0146
...
...
@@ -11,7 +11,7 @@
#
#
# 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
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
...
...
src/bin/createuser/createuser.sh
View file @
620f0146
...
...
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.
6 1996/11/14 10:2
4:54 bryanh Exp $
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.
7 1996/11/17 03:5
4:54 bryanh Exp $
#
# Note - this should NOT be setuid.
#
...
...
@@ -39,25 +39,25 @@ do
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
...
...
src/bin/destroydb/destroydb.sh
View file @
620f0146
...
...
@@ -11,7 +11,7 @@
#
#
# 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
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
...
...
src/bin/destroyuser/destroyuser.sh
View file @
620f0146
...
...
@@ -8,7 +8,7 @@
#
#
# 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.
#
...
...
@@ -39,25 +39,25 @@ do
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment