2019-01-24 17:51:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2019-11-12 23:36:04 +00:00
|
|
|
. ./scripts/version.sh
|
|
|
|
|
2020-12-01 07:14:32 +00:00
|
|
|
ROOT_VERSION=v0.7.1
|
2020-03-10 23:45:23 +00:00
|
|
|
TRAEFIK_VERSION=1.81.0
|
2019-03-20 00:21:49 +00:00
|
|
|
CHARTS_DIR=build/static/charts
|
|
|
|
|
|
|
|
mkdir -p ${CHARTS_DIR}
|
|
|
|
|
2020-12-01 07:16:38 +00:00
|
|
|
curl --compressed -sfL https://github.com/k3s-io/k3s-root/releases/download/${ROOT_VERSION}/k3s-root-${ARCH}.tar | tar xf -
|
2019-03-20 00:21:49 +00:00
|
|
|
|
2020-03-10 23:45:23 +00:00
|
|
|
TRAEFIK_FILE=traefik-${TRAEFIK_VERSION}.tgz
|
2020-12-22 00:06:08 +00:00
|
|
|
TRAEFIK_URL=https://charts.helm.sh/stable/packages/${TRAEFIK_FILE}
|
2020-12-21 23:55:13 +00:00
|
|
|
|
|
|
|
echo "Downloading Traefik Helm chart from ${TRAEFIK_URL}"
|
|
|
|
curl -sfL ${TRAEFIK_URL} -o ${CHARTS_DIR}/${TRAEFIK_FILE}
|
|
|
|
code=$?
|
|
|
|
|
|
|
|
if [ $code -ne 0 ]; then
|
|
|
|
echo "Error: Failed to download Traefik Helm chart!"
|
|
|
|
exit $code
|
|
|
|
fi
|
2019-09-03 23:41:54 +00:00
|
|
|
|
|
|
|
cp scripts/wg-add.sh bin/aux/
|