mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
Merge branch 'fix-pg-instructions' into 'main'
📝 — Use sudo -u postgres in PostgreSQL doc
See merge request framasoft/framaspace/argos!30
This commit is contained in:
commit
727786aa55
1 changed files with 4 additions and 9 deletions
|
@ -14,15 +14,10 @@ Here are a few steps for you to install postgresql on your system:
|
|||
sudo apt install postgresql
|
||||
```
|
||||
|
||||
By default, the `postgres` user has no password and can hence only connect if ran by the `postgres` system user. The following command will assign it:
|
||||
|
||||
```bash
|
||||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
|
||||
```
|
||||
|
||||
```bash
|
||||
psql postgres -c "CREATE DATABASE argos;"
|
||||
psql postgres -c "ALTER DATABASE argos SET TIMEZONE TO 'UTC';"
|
||||
sudo -u postgres createuser -P argos
|
||||
sudo -u postgres createdb -O argos argos
|
||||
sudo -u postgres psql -c "ALTER DATABASE argos SET TIMEZONE TO 'UTC';"
|
||||
```
|
||||
|
||||
## MacOS
|
||||
|
|
Loading…
Reference in a new issue