Skip to content

Commit

Permalink
✨ 🚑 Fix VMware tools installer to not depend on exact filenames (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
svpernova09 authored Jul 29, 2017
1 parent 0202b97 commit bef5d80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/vmware_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ echo "answer AUTO_KMODS_ENABLED yes" | tee -a /etc/vmware-tools/locations || tru

mkdir /tmp/iso
mount /home/vagrant/linux.iso /tmp/iso
cp -r /tmp/iso/VMwareTools-10.0.10-4301679.tar.gz /root/.
cp -r /tmp/iso/*.tar.gz /root/.
cd /root
tar -zxvf VMwareTools-10.0.10-4301679.tar.gz
tar -zxvf `ls *.tar.gz | grep VMware`
rm -rf /etc/vmware-tools/
perl /root/vmware-tools-distrib/vmware-install.pl -d || true

umount /tmp/iso
rm -rf /tmp/iso
rm -rf /root/VMwareTools-10.0.10-4301679.tar.gz
rm -rf /root/VMwareTools-*.tar.gz
rm -rf /root/vmware-tools-distrib
rm -rf /home/vagrant/linux.iso
4 changes: 2 additions & 2 deletions vmware/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ rm -rf .vagrant
cd ../../../../../

ls -lh vmware_fusion.box
vagrant destroy -f
rm -rf .vagrant
# vagrant destroy -f
# rm -rf .vagrant

0 comments on commit bef5d80

Please sign in to comment.