|
26 | 26 | # |
27 | 27 | # |
28 | 28 | # IDENTIFICATION |
29 | | -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.19 1996/11/29 06:24:14 bryanh Exp $ |
| 29 | +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.19.2.1 1996/12/22 03:20:00 scrappy Exp $ |
30 | 30 | # |
31 | 31 | #------------------------------------------------------------------------- |
32 | 32 |
|
|
83 | 83 | echo "updating template1 database only." |
84 | 84 | ;; |
85 | 85 | --username=*) |
86 | | - POSTGRES_SUPERUSERNAME="`echo $1 | sed s/^--username=//`" |
| 86 | + POSTGRES_SUPERUSERNAME="`echo $1 | sed 's/^--username=//'`" |
87 | 87 | ;; |
88 | 88 | -u) |
89 | 89 | shift |
90 | 90 | POSTGRES_SUPERUSERNAME="$1" |
91 | 91 | ;; |
92 | 92 | -u*) |
93 | | - POSTGRES_SUPERUSERNAME="`echo $1 | sed s/^-u//`" |
| 93 | + POSTGRES_SUPERUSERNAME="`echo $1 | sed 's/^-u//'`" |
94 | 94 | ;; |
95 | 95 | --pgdata=*) |
96 | | - PGDATA="`echo $1 | sed s/^--pgdata=//`" |
| 96 | + PGDATA="`echo $1 | sed 's/^--pgdata=//'`" |
97 | 97 | ;; |
98 | 98 | -r) |
99 | 99 | shift |
100 | 100 | PGDATA="$1" |
101 | 101 | ;; |
102 | 102 | -r*) |
103 | | - PGDATA="`echo $1 | sed s/^-r//`" |
| 103 | + PGDATA="`echo $1 | sed 's/^-r//'`" |
104 | 104 | ;; |
105 | 105 | --pglib=*) |
106 | | - PGLIB="`echo $1 | sed s/^--pglib=//`" |
| 106 | + PGLIB="`echo $1 | sed 's/^--pglib=//'`" |
107 | 107 | ;; |
108 | 108 | -l) |
109 | 109 | shift |
110 | 110 | PGLIB="$1" |
111 | 111 | ;; |
112 | 112 | -l*) |
113 | | - PGLIB="`echo $1 | sed s/^-l//`" |
| 113 | + PGLIB="`echo $1 | sed 's/^-l//'`" |
114 | 114 | ;; |
115 | 115 |
|
116 | 116 | *) |
|
128 | 128 | #------------------------------------------------------------------------- |
129 | 129 | # Make sure he told us where to find the Postgres files. |
130 | 130 | #------------------------------------------------------------------------- |
131 | | -if [ -z $PGLIB ]; then |
| 131 | +if [ -z "$PGLIB" ]; then |
132 | 132 | echo "$CMDNAME does not know where to find the files that make up " |
133 | 133 | echo "Postgres (the PGLIB directory). You must identify the PGLIB " |
134 | 134 | echo "directory either with a --pglib invocation option, or by " |
|
142 | 142 | # Make sure he told us where to build the database system |
143 | 143 | #------------------------------------------------------------------------- |
144 | 144 |
|
145 | | -if [ -z $PGDATA ]; then |
| 145 | +if [ -z "$PGDATA" ]; then |
146 | 146 | echo "$CMDNAME: You must identify the PGDATA directory, where the data" |
147 | 147 | echo "for this database system will reside. Do this with either a" |
148 | 148 | echo "--pgdata invocation option or a PGDATA environment variable." |
|
181 | 181 | # Figure out who the Postgres superuser for the new database system will be. |
182 | 182 | #--------------------------------------------------------------------------- |
183 | 183 |
|
184 | | -if [ -z $POSTGRES_SUPERUSERNAME ]; then |
| 184 | +if [ -z "$POSTGRES_SUPERUSERNAME" ]; then |
185 | 185 | echo "Can't tell what username to use. You don't have the USER" |
186 | 186 | echo "environment variable set to your username and didn't specify the " |
187 | 187 | echo "--username option" |
|
0 commit comments