view bin/install-k0s-web.sh @ 918:9d89288e3b4c

add script for k0s.org web install
author Jeff Hammel <k0scist@gmail.com>
date Sun, 02 Jun 2024 14:39:08 -0700
parents
children cc3b78bc4c21
line wrap: on
line source

#!/usr/bin/env bash

set -exuo pipefail

PYTHON_VERSION="3.7"

# TODO: take this from "$1"
DEST="${HOME}/web3"
rm -rf "${DEST}"

mkdir -p "${DEST}"
cd "${DEST}"
pyenv install "${PYTHON_VERSION}"
pyenv local "${PYTHON_VERSION}"
python --version