ankane / dexter

The automatic indexer for Postgres
MIT License
1.9k stars 47 forks source link

Installation instructions don't work for CentOS 8 #37

Closed denizdogan closed 4 years ago

denizdogan commented 4 years ago
--2020-10-27 09:37:08--  https://dl.packager.io/srv/pghero/dexter/master/installer/el/8.2.2004.repo
Resolving dl.packager.io (dl.packager.io)... 178.63.71.248
Connecting to dl.packager.io (dl.packager.io)|178.63.71.248|:443... connected.
HTTP request sent, awaiting response... 400 Bad Request
2020-10-27 09:37:09 ERROR 400: Bad Request.

It seems that for some reason lsb_release -rs is returning 8.2.2004 when it should be 8. I installed lsb_release using dnf -y install redhat-lsb-core, if that should matter.

denizdogan commented 4 years ago

Same goes for Debian Stretch, it tries to download https://dl.packager.io/srv/pghero/dexter/master/installer/debian/9.13.repo

ankane commented 4 years ago

Hey @denizdogan, thanks for reporting! Can you try replacing $(lsb_release -rs) with $(. /etc/os-release && echo $VERSION_ID)? If that works, will update the instructions.

denizdogan commented 4 years ago

@ankane It seems to work for Debian! It's hard for me to try for CentOS now that I've switched my solution to be Debian-based. :)

ankane commented 4 years ago

Great, thanks for confirming. It worked in the CentOS Docker image, so think it's safe to update.