Skip to content

Commit

Permalink
Merge pull request thingsboard#1696 from dashevchenko/updatedPostgres…
Browse files Browse the repository at this point in the history
…Installation

Updated ubuntu postgres installation
  • Loading branch information
ashvayka authored Oct 18, 2024
2 parents 1334638 + 44a5c1b commit 518fb93
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions _includes/templates/install/postgres-install-ubuntu.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
Instructions listed below will help you to install PostgreSQL.

```bash
# install **wget** if not already installed:
sudo apt install -y wget

# import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

# add repository contents to your system:
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
# Automated repository configuration:
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh

# install and launch the postgresql service:
sudo apt update
Expand Down

0 comments on commit 518fb93

Please sign in to comment.