| ... | @@ -38,10 +38,11 @@ CREATE USER git CREATEDB; |
... | @@ -38,10 +38,11 @@ CREATE USER git CREATEDB; |
|
|
CREATE DATABASE gitlabhq_production OWNER git;
|
|
CREATE DATABASE gitlabhq_production OWNER git;
|
|
|
ALTER USER git WITH SUPERUSER;
|
|
ALTER USER git WITH SUPERUSER;
|
|
|
ALTER USER git WITH PASSWORD 'somepassword';
|
|
ALTER USER git WITH PASSWORD 'somepassword';
|
|
|
|
CREATE EXTENSION pg_trgm;
|
|
|
```
|
|
```
|
|
|
Test that the new user can login:
|
|
Test that the new user can login:
|
|
|
```
|
|
```
|
|
|
sudo -u git -H psql -d gitlabhq_production
|
|
psql -U git -d gitlabhq_production -W
|
|
|
```
|
|
```
|
|
|
### Configure GitLab to use external database
|
|
### Configure GitLab to use external database
|
|
|
Edit in /etc/gitlab/gitlab.rb file:
|
|
Edit in /etc/gitlab/gitlab.rb file:
|
| ... | |
... | |
| ... | | ... | |