AgileVentures / AgileVentures/setup-scripts

Configure postgres permissions

Offen
#4 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
3
Forks
6
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Craig tested this script on Ubunty 14.04 Trusty and reports that because does not configure Postgres permissions, db:setup etc will not work.

A couple of ways to tackle this. Either create a superuser in your name:

```
[0:12] Paul McCulloch: I was looking at some of the install scripts to help me figure out pg install and found this allowed no mod of pg_hba.conf:
`sudo -u postgres createuser --superuser paul`

[7:08] David Corking: http://www.postgresql.org/docs/9.1/static/app-createuser.html
```

or

edit pg_hba.conf as we do in the LocalSupport and vagrant scripts (thanks to @tansaku )

```
# needs work to handle variable white space
#
sudo sed -i -e 's/local\s\+all\s\+postgres\s\+peer/local all postgres peer map=basic/g' /etc/postgresql/9.1/main/pg_hba.conf
```

Which approach shall we choose?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.