Welcome to mirror list, hosted at ThFree Co, Russian Federation.

create_postgres_user.sh « scripts - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8a744df32267fc820314c6eaa586bde8cef8e701 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

psql -h postgres -U postgres postgres <<EOF
DROP DATABASE IF EXISTS gitlabhq_test;
CREATE DATABASE gitlabhq_test;
CREATE USER gitlab;
GRANT ALL PRIVILEGES ON DATABASE gitlabhq_test TO gitlab;
EOF