Update install.sh

This commit is contained in:
2026-10-03 10:01:04 +02:00
parent 1f0e59cb08
commit 36b44a5e94

View File

@@ -4,9 +4,13 @@
# AGENT_HUB_SETUP_ARGS, when set, is added to the setup's arguments, e.g. --no-start. # AGENT_HUB_SETUP_ARGS, when set, is added to the setup's arguments, e.g. --no-start.
agent_hub_install() { agent_hub_install() {
if [ "$(uname -s)" != Linux ] || [ "$(uname -m)" != x86_64 ]; then if [ "$(uname -s)" != Linux ] || [ "$(uname -m)" != x86_64 ]; then
echo 'This line installs Agent Hub on Linux (x86_64). On Windows, run the page'\''s PowerShell line.' >&2 echo 'This line installs Agent Hub on Linux (x86_64). On Windows, run the PowerShell line instead.' >&2
return 1 return 1
fi fi
glibc=$(getconf GNU_LIBC_VERSION 2>/dev/null) || glibc=
case "${glibc#glibc }" in
2.[0-9]|2.[12][0-9]|2.3[0-4]) echo "Agent Hub needs glibc 2.35 or newer; this system has ${glibc#glibc }." >&2; return 1 ;;
esac
command -v curl >/dev/null 2>&1 || { echo 'Installing Agent Hub needs curl.' >&2; return 1; } command -v curl >/dev/null 2>&1 || { echo 'Installing Agent Hub needs curl.' >&2; return 1; }
dir=$(mktemp -d) || return 1 dir=$(mktemp -d) || return 1
exe="$dir/agent-hub-setup-linux" exe="$dir/agent-hub-setup-linux"