33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# install postgrest / frode klevstul / oct 2025
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
|
if [ "$EUID" -ne 0 ]
|
|
then echo "error: run as 'root'"
|
|
exit
|
|
fi
|
|
|
|
# ---
|
|
# postgrest
|
|
# ---
|
|
|
|
# https://gist.github.com/steinwaywhw/a4cd19cda655b8249d908261a62687f8
|
|
|
|
#wget https://github.com/PostgREST/postgrest/releases/latest/download/postgrest-linux-amd64
|
|
|
|
#https://github.com/PostgREST/postgrest/releases/latest/download/postgrest-latest-linux-static-x86-64.tar.xz
|
|
|
|
|
|
#https://github.com/PostgREST/postgrest/releases/download/v14.0/postgrest-v14.0-linux-static-x86-64.tar.xz
|
|
|
|
|
|
#wget -qO- --max-redirect=10 https://github.com/PostgREST/postgrest/releases | grep -wo "https.*x86_64.deb\|https.*amd64.deb" | head -n 1 | xargs -I {} wget -O test.deb {}
|
|
|
|
cd /tmp
|
|
|
|
curl -s https://api.github.com/repos/PostgREST/postgrest/releases/latest | sed 's/[()",{}]/ /g; s/ /\n/g' | grep "https.*releases/download*static*.*tar.xz"
|
|
|