Update install.sh

This commit is contained in:
2026-01-14 21:49:21 +00:00
parent dc4971a63e
commit 7d118b9b69

View File

@@ -61,6 +61,26 @@ else
chmod +x /usr/local/bin/yq
fi
# Install gum (required for kubernetes cluster)
info "Installing gum..."
if ! curl -sSL -o /tmp/gum_0.17.0_Linux_x86_64.tar.gz https://github.com/charmbracelet/gum/releases/download/v0.17.0/gum_0.17.0_Linux_x86_64.tar.gz; then
echo "Error: Failed to download gum." >&2
exit 1
else
tar -xzf /tmp/gum_0.17.0_Linux_x86_64.tar.gz -C /usr/local/bin --strip-components=1 gum_0.17.0_Linux_x86_64/gum
rm -rf /tmp/gum_0.17.0_Linux_x86_64.tar.gz
chmod +x /usr/local/bin/gum
fi
# Install k0sctl (required for kubernetes cluster)
info "Installing k0sctl..."
if ! curl -sSL -o /usr/local/bin/k0sctl https://github.com/k0sproject/k0sctl/releases/latest/download/k0sctl-linux-amd64; then
echo "Error: Failed to download k0sctl." >&2
exit 1
else
chmod +x /usr/local/bin/k0sctl
fi
}
main() {