c12s-kubespray/roles/bootstrap-os/files/bootstrap.sh

23 lines
435 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -e
BINDIR="/opt/bin"
mkdir -p $BINDIR
cd $BINDIR
if [[ -e $BINDIR/.bootstrapped ]]; then
exit 0
fi
PYPY_VERSION=7.2.0
wget -O - https://github.com/squeaky-pl/portable-pypy/releases/download/pypy3.6-7.2.0/pypy3.6-$PYPY_VERSION-linux_x86_64-portable.tar.bz2 | tar -xjf -
mv -n pypy3.6-$PYPY_VERSION-linux_x86_64-portable pypy3
2019-01-12 14:04:33 +00:00
ln -s ./pypy3/bin/pypy3 python
$BINDIR/python --version
touch $BINDIR/.bootstrapped