Skip to content

Commit

Permalink
setup-grest.sh - Fix haproxy path check
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Dec 9, 2023
1 parent 7d049c5 commit c7d4a58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions files/docker/node/release-versions/mithril-latest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2347.0
4 changes: 2 additions & 2 deletions scripts/grest-helper-scripts/setup-grest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ SGVERSION=v1.1.0
pgrest_binary=linux-static-x64.tar.xz
fi
#pgrest_asset_url="$(curl -s https://api.github.com/repos/PostgREST/postgrest/releases/latest | jq -r '.assets[].browser_download_url' | grep ${pgrest_binary})"
pgrest_asset_url="https://github.com/PostgREST/postgrest/releases/download/v11.2.2/postgrest-v11.2.2-linux-static-x64.tar.xz" # Fix PostgREST to v11.2.2 until v12 headers are updated
pgrest_asset_url="https://github.com/PostgREST/postgrest/releases/download/v11.2.2/postgrest-v11.2.2-${pgrest_binary}" # Fix PostgREST to v11.2.2 until v12 headers are updated
if curl -sL -f -m ${CURL_TIMEOUT} -o postgrest.tar.xz "${pgrest_asset_url}"; then
tar xf postgrest.tar.xz &>/dev/null && rm -f postgrest.tar.xz
[[ -f postgrest ]] || err_exit "PostgREST archive downloaded but binary not found after attempting to extract package!"
Expand Down Expand Up @@ -497,7 +497,7 @@ SGVERSION=v1.1.0
WantedBy=multi-user.target
EOF"
printf "\n HAProxy Service"
command -v haproxy >/dev/null && sudo bash -c "cat <<-EOF > /etc/systemd/system/${CNODE_VNAME}-haproxy.service
[[ ! -f /usr/sbin/haproxy ]] && sudo bash -c "cat <<-EOF > /etc/systemd/system/${CNODE_VNAME}-haproxy.service
[Unit]
Description=HAProxy Load Balancer
After=network-online.target
Expand Down

0 comments on commit c7d4a58

Please sign in to comment.