feat:adjust postgres

This commit is contained in:
dancingCycle 2022-06-05 08:35:59 +02:00
parent 1304c3bff1
commit 39929f9e22
3 changed files with 29 additions and 21 deletions

23
doc/postgres-install.md Normal file
View File

@ -0,0 +1,23 @@
# Setup Postgres
* get the latest version of installed packages and refresh the repo cache
```
sudo apt update
```
* install postgres directly from the official repository
```
sudo apt-get install postgresql --no-install-recommends
```
* validate the existence of the postgres admin user
```
cat /etc/passwd|grep postgres
cat /etc/group|grep postgres
```
* set key for admin user postgres
```
sudo -u postgres psql
postgres=# \password postgres
```

View File

@ -0,0 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022 Software Ingenieur Begerad <swingbe.de>
*
* SPDX-License-Identifier: CC0-1.0
*/

View File

@ -1,26 +1,6 @@
# Setup Postgres
* get the latest version of installed packages and refresh the repo cache
```
sudo apt update
```
* install postgres directly from the official repository
```
sudo apt-get install postgresql --no-install-recommends
```
* validate the existence of the postgres admin user
```
cat /etc/passwd|grep postgres
cat /etc/group|grep postgres
```
* set key for admin user postgres
```
sudo -u postgres psql
postgres=# \password postgres
```
* install Postgres like [this](./postgres-install.md)
* create copy of config file ```pg_hba.conf file```\
NOTE: Insert the postgresql version <psql version> that is running on the respective host