Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
d9e10180
Commit
d9e10180
authored
28 years ago
by
Bryan Henderson
Browse files
Options
Downloads
Patches
Plain Diff
Add some quotes so it works on more shells.
parent
d6c06feb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/initdb/initdb.sh
+10
-10
10 additions, 10 deletions
src/bin/initdb/initdb.sh
with
10 additions
and
10 deletions
src/bin/initdb/initdb.sh
+
10
−
10
View file @
d9e10180
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.
19
1996/1
1
/2
9
0
6:24:14
bryanh Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.
20
1996/1
2
/2
3
0
8:50:27
bryanh Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -83,34 +83,34 @@ do
...
@@ -83,34 +83,34 @@ do
echo
"updating template1 database only."
echo
"updating template1 database only."
;;
;;
--username
=
*
)
--username
=
*
)
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
s/^--username
=
//
`
"
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
'
s/^--username=//
'
`
"
;;
;;
-u
)
-u
)
shift
shift
POSTGRES_SUPERUSERNAME
=
"
$1
"
POSTGRES_SUPERUSERNAME
=
"
$1
"
;;
;;
-u
*
)
-u
*
)
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
s/^-u//
`
"
POSTGRES_SUPERUSERNAME
=
"
`
echo
$1
|
sed
'
s/^-u//
'
`
"
;;
;;
--pgdata
=
*
)
--pgdata
=
*
)
PGDATA
=
"
`
echo
$1
|
sed
s/^--pgdata
=
//
`
"
PGDATA
=
"
`
echo
$1
|
sed
'
s/^--pgdata=//
'
`
"
;;
;;
-r
)
-r
)
shift
shift
PGDATA
=
"
$1
"
PGDATA
=
"
$1
"
;;
;;
-r
*
)
-r
*
)
PGDATA
=
"
`
echo
$1
|
sed
s/^-r//
`
"
PGDATA
=
"
`
echo
$1
|
sed
'
s/^-r//
'
`
"
;;
;;
--pglib
=
*
)
--pglib
=
*
)
PGLIB
=
"
`
echo
$1
|
sed
s/^--pglib
=
//
`
"
PGLIB
=
"
`
echo
$1
|
sed
'
s/^--pglib=//
'
`
"
;;
;;
-l
)
-l
)
shift
shift
PGLIB
=
"
$1
"
PGLIB
=
"
$1
"
;;
;;
-l
*
)
-l
*
)
PGLIB
=
"
`
echo
$1
|
sed
s/^-l//
`
"
PGLIB
=
"
`
echo
$1
|
sed
'
s/^-l//
'
`
"
;;
;;
*
)
*
)
...
@@ -128,7 +128,7 @@ done
...
@@ -128,7 +128,7 @@ done
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
# Make sure he told us where to find the Postgres files.
# 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
"
$CMDNAME
does not know where to find the files that make up "
echo
"Postgres (the PGLIB directory). You must identify the PGLIB "
echo
"Postgres (the PGLIB directory). You must identify the PGLIB "
echo
"directory either with a --pglib invocation option, or by "
echo
"directory either with a --pglib invocation option, or by "
...
@@ -142,7 +142,7 @@ fi
...
@@ -142,7 +142,7 @@ fi
# Make sure he told us where to build the database system
# 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
"
$CMDNAME
: You must identify the PGDATA directory, where the data"
echo
"for this database system will reside. Do this with either a"
echo
"for this database system will reside. Do this with either a"
echo
"--pgdata invocation option or a PGDATA environment variable."
echo
"--pgdata invocation option or a PGDATA environment variable."
...
@@ -181,7 +181,7 @@ fi
...
@@ -181,7 +181,7 @@ fi
# Figure out who the Postgres superuser for the new database system will be.
# 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
"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
"environment variable set to your username and didn't specify the "
echo
"--username option"
echo
"--username option"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment