Skip to content

Commit c710e90

Browse files
committed
Fix pg_textsearch install for new release artifact format
v0.6.1 ships tarballs with raw extension files instead of .deb packages in .zip files. Update the install script to download the tarball and copy .so/.sql/.control files to the correct directories.
1 parent 800ddd3 commit c710e90

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build_scripts/shared_install.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,15 +418,16 @@ install_pg_textsearch() {
418418
mkdir -p /build/pg_textsearch
419419
cd /build/pg_textsearch
420420

421-
artifact="pg-textsearch-${version}-pg${pg}-${arch}.zip"
421+
artifact="pg_textsearch-pg${pg}-${version}.tar.gz"
422422
curl --silent \
423423
--fail \
424424
--location \
425-
--output artifact.zip \
425+
--output artifact.tar.gz \
426426
"https://github.com/timescale/pg_textsearch/releases/download/${version}/${artifact}"
427427

428-
unzip artifact.zip
429-
dpkg --install --log=/build/pg_textsearch/dpkg.log --admindir=/build/pg_textsearch/ --force-depends --force-not-root --force-overwrite pg-textsearch*.deb
428+
tar xzf artifact.tar.gz
429+
cp "pg${pg}/"*.so "/usr/lib/postgresql/${pg}/lib/"
430+
cp "pg${pg}/"*.sql "pg${pg}/"*.control "/usr/share/postgresql/${pg}/extension/"
430431
)
431432
err=$?
432433
if [ $err -eq 0 ]; then

0 commit comments

Comments
 (0)