We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4af64e5 commit d438ffdCopy full SHA for d438ffd
1 file changed
dev-container/entrypoint.sh
@@ -28,9 +28,11 @@ until $PG_BIN/pg_isready -h localhost -q; do
28
sleep 1
29
done
30
31
-# Create pulp database (idempotent)
+# Create pulp role and database (idempotent)
32
+$PG_BIN/psql -d postgres -tc "SELECT 1 FROM pg_roles WHERE rolname = 'pulp'" | grep -q 1 || \
33
+ $PG_BIN/psql -d postgres -c "CREATE ROLE pulp WITH LOGIN SUPERUSER"
34
$PG_BIN/psql -d postgres -tc "SELECT 1 FROM pg_database WHERE datname = 'pulp'" | grep -q 1 || \
- $PG_BIN/psql -d postgres -c "CREATE DATABASE pulp"
35
+ $PG_BIN/psql -d postgres -c "CREATE DATABASE pulp OWNER pulp"
36
37
# Start Redis
38
echo "Starting Redis..."
0 commit comments