From 5b007c2cc73b36b189d4262b31d5bfd5c255e081 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 24 May 2022 17:54:52 +0200 Subject: [PATCH] sfd --- ubuntu_setup | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ubuntu_setup b/ubuntu_setup index 99f5c7641..bef1a2950 100644 --- a/ubuntu_setup +++ b/ubuntu_setup @@ -2,11 +2,17 @@ update-locale LANG=en_US.utf8 cd /rDrama cp ./env /env . /env -apt update +apt -y update apt -y upgrade -apt -y install git postgresql postgresql-contrib redis-server python3-pip libenchant1c2a ffmpeg tmux nginx snapd ufw -cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf +apt -y install git redis-server python3-pip libenchant1c2a ffmpeg tmux nginx snapd ufw + +sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' +wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - +apt -y update +apt -y install postgresql-14 +cp pg_hba.conf /etc/postgresql/14/main/pg_hba.conf service postgresql restart + # psql -U postgres -f schema.sql postgres # psql -U postgres -f seed-db.sql postgres pip3 install -r requirements.txt