Fix url RELEASE variable.
This commit is contained in:
parent
c76fcb5e70
commit
26cc51f029
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue