Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
d9e10180
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d9e10180
编写于
12月 23, 1996
作者:
B
Bryan Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add some quotes so it works on more shells.
上级
d6c06feb
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
src/bin/initdb/initdb.sh
src/bin/initdb/initdb.sh
+10
-10
未找到文件。
src/bin/initdb/initdb.sh
浏览文件 @
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"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录