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
d9e10180
Commit
d9e10180
authored
Dec 23, 1996
by
Bryan Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some quotes so it works on more shells.
parent
d6c06feb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/bin/initdb/initdb.sh
src/bin/initdb/initdb.sh
+10
-10
No files found.
src/bin/initdb/initdb.sh
View file @
d9e10180
...
...
@@ -26,7 +26,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.
19 1996/11/29 06:24:14
bryanh Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.
20 1996/12/23 08:50:27
bryanh Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -83,34 +83,34 @@ do
echo
"updating template1 database only."
;;
--username
=
*
)
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
s/^--username
=
//
`
"
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
's/^--username=//'
`
"
;;
-u
)
shift
POSTGRES_SUPERUSERNAME
=
"
$1
"
;;
-u
*
)
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
s/^-u//
`
"
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
's/^-u//'
`
"
;;
--pgdata
=
*
)
PGDATA
=
"
`
echo
$1
|
sed
s/^--pgdata
=
//
`
"
PGDATA
=
"
`
echo
$1
|
sed
's/^--pgdata=//'
`
"
;;
-r
)
shift
PGDATA
=
"
$1
"
;;
-r
*
)
PGDATA
=
"
`
echo
$1
|
sed
s/^-r//
`
"
PGDATA
=
"
`
echo
$1
|
sed
's/^-r//'
`
"
;;
--pglib
=
*
)
PGLIB
=
"
`
echo
$1
|
sed
s/^--pglib
=
//
`
"
PGLIB
=
"
`
echo
$1
|
sed
's/^--pglib=//'
`
"
;;
-l
)
shift
PGLIB
=
"
$1
"
;;
-l
*
)
PGLIB
=
"
`
echo
$1
|
sed
s/^-l//
`
"
PGLIB
=
"
`
echo
$1
|
sed
's/^-l//'
`
"
;;
*
)
...
...
@@ -128,7 +128,7 @@ done
#-------------------------------------------------------------------------
# Make sure he told us where to find the Postgres files.
#-------------------------------------------------------------------------
if
[
-z
$PGLIB
]
;
then
if
[
-z
"
$PGLIB
"
]
;
then
echo
"
$CMDNAME
does not know where to find the files that make up "
echo
"Postgres (the PGLIB directory). You must identify the PGLIB "
echo
"directory either with a --pglib invocation option, or by "
...
...
@@ -142,7 +142,7 @@ fi
# Make sure he told us where to build the database system
#-------------------------------------------------------------------------
if
[
-z
$PGDATA
]
;
then
if
[
-z
"
$PGDATA
"
]
;
then
echo
"
$CMDNAME
: You must identify the PGDATA directory, where the data"
echo
"for this database system will reside. Do this with either a"
echo
"--pgdata invocation option or a PGDATA environment variable."
...
...
@@ -181,7 +181,7 @@ fi
# Figure out who the Postgres superuser for the new database system will be.
#---------------------------------------------------------------------------
if
[
-z
$POSTGRES_SUPERUSERNAME
]
;
then
if
[
-z
"
$POSTGRES_SUPERUSERNAME
"
]
;
then
echo
"Can't tell what username to use. You don't have the USER"
echo
"environment variable set to your username and didn't specify the "
echo
"--username option"
...
...
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