From 0b743982a6fdb7186288e1cfa273bfc4c04b1cbe Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 4 Oct 2022 21:52:15 +0200 Subject: [PATCH] remove "sudo" from ubuntu_setup.sh --- ubuntu_setup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ubuntu_setup.sh b/ubuntu_setup.sh index 8973a654d..213e53e46 100644 --- a/ubuntu_setup.sh +++ b/ubuntu_setup.sh @@ -21,16 +21,16 @@ sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - apt -y update apt -y install postgresql-14 -sudo rm /etc/postgresql/14/main/pg_hba.conf -sudo cp pg_hba.conf /etc/postgresql/14/main/pg_hba.conf +rm /etc/postgresql/14/main/pg_hba.conf +cp pg_hba.conf /etc/postgresql/14/main/pg_hba.conf service postgresql restart chown postgres:postgres /etc/postgresql/14/main/pg_hba.conf -sudo rm /etc/nginx/sites-available -r -sudo rm /etc/nginx/sites-enabled/default -sudo mkdir /etc/nginx/includes -sudo cp nginx.conf /etc/nginx/sites-enabled/1 -sudo cp nginx-serve-static.conf /etc/nginx/includes/serve-static +rm /etc/nginx/sites-available -r +rm /etc/nginx/sites-enabled/default +mkdir /etc/nginx/includes +cp nginx.conf /etc/nginx/sites-enabled/1 +cp nginx-serve-static.conf /etc/nginx/includes/serve-static /etc/init.d/nginx reload psql -U postgres -f schema.sql postgres