Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
utils
Commits
aa078ec3
Commit
aa078ec3
authored
Jan 28, 2019
by
Michał 'czesiek' Czyżewski
Browse files
Fix
#1
: `read` does not have a `-P` option
parent
1f427551
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
utils.sh
utils.sh
+1
-1
No files found.
utils.sh
View file @
aa078ec3
...
...
@@ -326,7 +326,7 @@ function create_readonly_postgres_user() {
# make sure the role exists
PGPASSWORD
=
"
$PG_PASS
"
psql
-h
"
$PG_HOST
"
-U
"
$PG_USER
"
-c
"
CREATE ROLE
$RUSER_NAME
NOSUPERUSER NOCREATEDB NOCREATEROLE LOGIN NOREPLICATION PASSWORD '
$RUSER_PW
';"
postgres
\
||
{
display_error
"Error creating the
$RUSER_NAME
role."
;
read
-
P
"Hit Enter to continue or Ctrl-C to abort"
;
}
||
{
display_error
"Error creating the
$RUSER_NAME
role."
;
read
-
p
"Hit Enter to continue or Ctrl-C to abort"
;
}
# make sure the role has the basic required privileges (and lacks the unneeded ones)
PGPASSWORD
=
"
$PG_PASS
"
psql
-h
"
$PG_HOST
"
-U
"
$PG_USER
"
-c
"GRANT SELECT ON pg_authid TO
$RUSER_NAME
;"
postgres
\
...
...
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