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

23 lines
413 B
Bash
Raw 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.0.0
2019-01-12 22:04:33 +08:00
wget -O - https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.5-$PYPY_VERSION-linux_x86_64-portable.tar.bz2 | tar -xjf -
mv -n pypy3.5-$PYPY_VERSION-linux_x86_64-portable pypy3
2019-01-12 22:04:33 +08:00
ln -s ./pypy3/bin/pypy3 python
$BINDIR/python --version
touch $BINDIR/.bootstrapped