Skip to content

Commit

Permalink
create_rke2_sysext.sh: Remove hardcoded arch strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pothos committed May 7, 2024
1 parent 79a5d10 commit 86f76b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create_rke2_sysext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ mkdir -p "${SYSEXTNAME}/usr/local/"

TMP_DIR="${SYSEXTNAME}/tmp/"
mkdir -p "${TMP_DIR}"
curl -o "${TMP_DIR}/rke2.linux-amd64.tar.gz" -fsSL "${URL}"
curl -o "${TMP_DIR}/rke2.linux-${ARCH}.tar.gz" -fsSL "${URL}"
curl -o "${TMP_DIR}/sha256sums" -fsSL "${SHA256SUMS}"
pushd "${TMP_DIR}" > /dev/null
grep rke2.linux-amd64.tar.gz ./sha256sums | sha256sum -c -
grep "rke2.linux-${ARCH}.tar.gz" ./sha256sums | sha256sum -c -
popd > /dev/null

tar xf "${TMP_DIR}/rke2.linux-amd64.tar.gz" -C "${SYSEXTNAME}/usr/local/"
tar xf "${TMP_DIR}/rke2.linux-${ARCH}.tar.gz" -C "${SYSEXTNAME}/usr/local/"
rm "${SYSEXTNAME}/usr/local/bin/rke2-uninstall.sh"

# remove TMP_DIR before building the sysext
Expand Down

0 comments on commit 86f76b2

Please sign in to comment.