gitlab-org--gitlab-foss/scripts/create_postgres_user.sh
Lin Jen-Shin 0ab6469187 Grant privileges after database is created
Never drop the database when granting privileges
2018-05-16 21:52:08 +08:00

6 lines
144 B
Bash

#!/bin/bash
psql -h postgres -U postgres postgres <<EOF
CREATE USER gitlab;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO gitlab;
EOF