-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpostgresql_install.sh
More file actions
24 lines (18 loc) · 885 Bytes
/
postgresql_install.sh
File metadata and controls
24 lines (18 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Author name: Ruel Nopal
# Company: Ruel Nopal - IT Consultant.
# url: www.ruelnopal.com
# Installing NginX.
# apt update && apt upgrade
# apt install wget
# run wget https://raw.githubusercontent.com/raketbizdev/code-snippits/master/postgresql_install.sh; sudo chmod 755 postgresql_install.sh; ./postgresql_install.sh
# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# Update the package lists:
sudo apt-get update
# Install the latest version of PostgreSQL.
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
sudo apt-get -y install postgresql
sudo rm postgresql_install.sh