Skip to content

Commit

Permalink
docs: Required installations for Local DB (TgCatUB#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisan09 authored May 8, 2023
2 parents 6a51b13 + bb01c49 commit 50ec1e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/installation/variables/config-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ The bot will send token after that.

{% tabs %}
{% tab title="Local Database" %}
{% code title="Run this in terminal" overflow="wrap" %}
{% code title="First install postgres" overflow="wrap" %}
```batch
sudo -u postgres bash -c "psql -c \"CREATE USER postgres WITH PASSWORD 'your_password';\" && createdb catuserbot -O postgres"
sudo apt install postgresql postgresql-contrib
```
{% code title="Then run this in terminal" overflow="wrap" %}
```batch
sudo -u postgres bash -c "psql -c \"ALTER USER postgres WITH PASSWORD 'your_password';\" && createdb catuserbot -O postgres"
```
{% endcode %}

Expand Down

0 comments on commit 50ec1e6

Please sign in to comment.