Upgrade dependencies (#619)

This commit is contained in:
Sung 2023-02-05 13:10:45 +11:00 committed by GitHub
commit 4a780574eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 22 deletions

View file

@ -36,7 +36,7 @@ if [[ $1 == v* ]]; then
exit 1
fi
goVersion=go-1.17.x
goVersion=go-1.20.x
get_binary_name() {
platform=$1

View file

@ -10,8 +10,10 @@ echo "cd /go/src/github.com/dnote/dnote" >> /home/vagrant/.bash_profile
# set up database
sudo -u postgres createdb dnote
sudo -u postgres createdb dnote_test
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
# allow connection from host and allow to connect without password
sudo sed -i "/port*/a listen_addresses = '*'" /etc/postgresql/11/main/postgresql.conf
sudo sed -i 's/host.*all.*.all.*md5/# &/' /etc/postgresql/11/main/pg_hba.conf
sudo sed -i "$ a host all all all trust" /etc/postgresql/11/main/pg_hba.conf
sudo sed -i "/port*/a listen_addresses = '*'" /etc/postgresql/14/main/postgresql.conf
sudo sed -i 's/host.*all.*.all.*md5/# &/' /etc/postgresql/14/main/pg_hba.conf
sudo sed -i "$ a host all all all trust" /etc/postgresql/14/main/pg_hba.conf
sudo service postgresql restart

View file

@ -2,7 +2,7 @@
# shellcheck disable=SC1091
set -eux
VERSION=1.17.9
VERSION=1.20
OS=linux
ARCH=amd64

View file

@ -6,4 +6,4 @@ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install -y postgresql-11
sudo apt-get install -y postgresql-14