Mercurial > hg > config
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/install-k0s-web.sh Sun Jun 02 14:39:08 2024 -0700 @@ -0,0 +1,15 @@ +#!/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