mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
📝 — Use sudo -u postgres in PostgreSQL doc
This commit is contained in:
parent
4cfc845fca
commit
1a5a44fe6a
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