Fix url RELEASE variable.

This commit is contained in:
Cyteen May 2020-02-22 22:14:42 +00:00
parent c76fcb5e70
commit 26cc51f029
1 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,7 @@ echo $VERSION
# Delete these two when you've fixed the jq above
#VERSION=1.6.0
RELEASE=1
DEB_RELEASE=1
# make a containing directory
mkdir -p /var/tmp/k3d-"${VERSION}"
@ -37,6 +37,7 @@ Little helper to run Rancher Lab's k3s in Docker. k3s is the lightweight Kubern
EOF
cat > ./checkinstall_it.sh << EOF
#!/usr/bin/env bash
echo "ENTERING CHECKINSTALL"
@ -69,7 +70,7 @@ mkdir -p ${BASE_TMP_DIR}
checkinstall -y --fstrans \
--pkgname=rancher-k3d \
--pkgversion=${VERSION}\
--pkgrelease=${RELEASE} \
--pkgrelease=${DEB_RELEASE} \
--pkgarch=amd64 \
--pkggroup=admin \
--pkglicense=LICENSE \
@ -83,10 +84,13 @@ EOF
echo "${RELEASE}"
cat > ./install-it.sh << EOF
#!/usr/bin/env bash
#wget -c https://raw.githubusercontent.com/rancher/k3d/master/install.sh
#sed -i '/^#\!.*/ s/.*/&\nset -x/' ./install.sh
#TAG=${RELEASE} bash install.sh
echo "Installing release ${RELEASE} "
curl -SsL https://github.com/rancher/k3d/releases/download/${RELEASE}/k3d-linux-amd64 -o /usr/local/bin/k3d
chmod +x /usr/local/bin/k3d
EOF