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