k3s.sh 466 Bytes
Newer Older
Vitaly Lipatov's avatar
Vitaly Lipatov committed
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh

TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"

. $(dirname $0)/common.sh

PKGNAME=$PRODUCT-$VERSION

install -D $TAR usr/bin/$PRODUCT || fatal
12
for i in kubectl crictl ctr ; do
13
    ln -sf $PRODUCT usr/bin/$i
14 15
done
erc pack $PKGNAME.tar usr/bin
Vitaly Lipatov's avatar
Vitaly Lipatov committed
16

Vitaly Lipatov's avatar
Vitaly Lipatov committed
17 18 19 20 21 22 23 24 25
cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
group: File tools
license: Apache-2.0
url: https://k3s.io
summary: K3s - Lightweight Kubernetes
description: K3s - Lightweight Kubernetes.
EOF

Vitaly Lipatov's avatar
Vitaly Lipatov committed
26
return_tar $PKGNAME.tar