Mercurial > hg > config
changeset 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 | 372061cd29d7 |
children | cc3b78bc4c21 |
files | bin/install-k0s-web.sh |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
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