Skip to content

Commit e413f4e

Browse files
committed
Merge pull request #2 from iimog/fix_lockfile_bug
Fix "lock file exists" bug
2 parents 83a6b3d + 7ff8a66 commit e413f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/010_create_user_db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ DB_NAME=${DB_NAME:-mydatabase}
44
DB_PW=${DB_PW:-mypassword}
55
DB_USER=${DB_USER:-myuser}
66
echo "******CREATING DOCKER DATABASE******"
7-
gosu postgres postgres --single <<- EOSQL
7+
gosu postgres psql <<- EOSQL
88
CREATE DATABASE $DB_NAME;
99
CREATE ROLE $DB_USER ENCRYPTED PASSWORD '$DB_PW' SUPERUSER CREATEDB NOCREATEROLE INHERIT LOGIN;
1010
ALTER DATABASE $DB_NAME OWNER TO $DB_USER;

0 commit comments

Comments
 (0)