mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-28 02:38:43 +00:00
Merge pull request #3712 from ThomasWaldmann/fix-3706
Vagrant: move cleanup steps to fs_init, fixes #3706
This commit is contained in:
commit
7127fb7f94
1 changed files with 4 additions and 3 deletions
7
Vagrantfile
vendored
7
Vagrantfile
vendored
|
@ -264,9 +264,6 @@ def install_borg(fuse)
|
||||||
. borg-env/bin/activate
|
. borg-env/bin/activate
|
||||||
pip install -U wheel # upgrade wheel, too old for 3.5
|
pip install -U wheel # upgrade wheel, too old for 3.5
|
||||||
cd borg
|
cd borg
|
||||||
# clean up (wrong/outdated) stuff we likely got via rsync:
|
|
||||||
rm -rf __pycache__
|
|
||||||
find src -name '__pycache__' -exec rm -rf {} \\;
|
|
||||||
pip install -r requirements.d/development.txt
|
pip install -r requirements.d/development.txt
|
||||||
python setup.py clean
|
python setup.py clean
|
||||||
EOF
|
EOF
|
||||||
|
@ -331,6 +328,10 @@ end
|
||||||
|
|
||||||
def fs_init(user)
|
def fs_init(user)
|
||||||
return <<-EOF
|
return <<-EOF
|
||||||
|
# clean up (wrong/outdated) stuff we likely got via rsync:
|
||||||
|
rm -rf /vagrant/borg/borg/.tox
|
||||||
|
rm -rf /vagrant/borg/borg/__pycache__
|
||||||
|
find /vagrant/borg/borg/src -name '__pycache__' -exec rm -rf {} \\;
|
||||||
chown -R #{user} /vagrant/borg
|
chown -R #{user} /vagrant/borg
|
||||||
touch ~#{user}/.bash_profile ; chown #{user} ~#{user}/.bash_profile
|
touch ~#{user}/.bash_profile ; chown #{user} ~#{user}/.bash_profile
|
||||||
echo 'export LANG=en_US.UTF-8' >> ~#{user}/.bash_profile
|
echo 'export LANG=en_US.UTF-8' >> ~#{user}/.bash_profile
|
||||||
|
|
Loading…
Reference in a new issue