Skip to content

Commit f8ff862

Browse files
authored
Merge pull request #879 from gizmodata/gizmosql-cli-client
GizmoSQL: use the official one-line installer
2 parents 81699f5 + a0bbae8 commit f8ff862

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

gizmosql/benchmark.sh

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,12 @@ export HOME=/home/ubuntu
55

66
# Install requirements
77
sudo apt-get update -y
8-
sudo apt-get install -y unzip netcat-openbsd
9-
10-
# Detect architecture (maps x86_64->amd64, aarch64->arm64)
11-
ARCH=$(uname -m)
12-
if [ "$ARCH" = "x86_64" ]; then
13-
ARCH="amd64"
14-
elif [ "$ARCH" = "aarch64" ]; then
15-
ARCH="arm64"
16-
fi
17-
18-
# Install the GizmoSQL server and client (gizmosql_client is the CLI shell) into a local directory
19-
mkdir -p ./bin
20-
curl -L -o gizmosql.zip "https://github.com/gizmodata/gizmosql/releases/latest/download/gizmosql_cli_linux_${ARCH}.zip"
21-
unzip -o gizmosql.zip -d ./bin
22-
chmod +x ./bin/gizmosql_server ./bin/gizmosql_client
23-
export PATH="$PWD/bin:$PATH"
8+
sudo apt-get install -y curl unzip netcat-openbsd
9+
10+
# Install the GizmoSQL server and client (gizmosql_client is the CLI shell)
11+
# via the official one-line installer (https://install.gizmosql.com).
12+
curl -fsSL https://install.gizmosql.com/install.sh | sh
13+
export PATH="$HOME/.local/bin:$PATH"
2414

2515
# Source our env vars and utility functions for starting/stopping gizmosql server
2616
. util.sh

0 commit comments

Comments
 (0)