Skip to content

Commit

Permalink
Try again to get PG12 to use regular repo
Browse files Browse the repository at this point in the history
  • Loading branch information
robe2 committed Aug 13, 2023
1 parent 35fb903 commit b793031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/postgresql_postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ set -e

curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null

if ["$POSTGRESQL_VERSION" = "12"];
if [[ $POSTGRESQL_VERSION == *12* ]];
then
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main $POSTGRESQL_VERSION" |sudo tee /etc/apt/sources.list.d/pgdg.list
echo "Using main repo"
else
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg-snapshot main $POSTGRESQL_VERSION" |sudo tee /etc/apt/sources.list.d/pgdg.list
echo "Using snapshot report for$POSTGRESQL_VERSION"
fi

# RAISE priority of pgdg
Expand Down

0 comments on commit b793031

Please sign in to comment.