Skip to content

Commit

Permalink
docs: Update database setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisan09 authored Jun 21, 2023
1 parent e9223c6 commit 828948a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/installation/variables/config-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,15 @@ sudo apt install postgresql postgresql-contrib
```
{% endcode %}

{% code title="Then run this in terminal" overflow="wrap" %}
{% code title="Switch to postgres user" overflow="wrap" %}
```batch
sudo -u postgres bash -c "psql -c \"ALTER USER postgres WITH PASSWORD 'your_password';\" && createdb catuserbot -O postgres"
sudo su - postgres
```
{% endcode %}

{% code title="Create database abd exit from postgres user" overflow="wrap" %}
```batch
bash -c "psql -c \"ALTER USER postgres WITH PASSWORD 'your_password';\" && createdb catuserbot -O postgres" && exit
```
{% endcode %}

Expand Down

0 comments on commit 828948a

Please sign in to comment.