vagrant: fix vagrant scp on macOS, fixes #5921

it did not find pyenv in PATH, resulting in unpretty error messages.
This commit is contained in:
Thomas Waldmann 2022-01-22 17:25:54 +01:00
parent 757f757cc1
commit 550be412e4
1 changed files with 2 additions and 0 deletions

2
Vagrantfile vendored
View File

@ -145,6 +145,8 @@ def install_pyenv(boxname)
. ~/.bash_profile
curl -s -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
echo 'eval "$(pyenv init --path)"' >> ~/.bash_profile
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
EOF