Merge pull request #1806 from shapeblue/4.8-travis-apt-clean

travis: cleanup apt before installing packagesThis aims at fixing recent Travis failures.

* pr/1806:
  CLOUDSTACK-9584: Fix Travis to cleanup apt repo before pkg installation

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2016-12-02 22:28:51 +05:30
commit 14b4642ac8
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ echo -e "\nCleaning up stale files in /tmp: "
sudo find /tmp -type f -mtime +2 | grep -v "`sudo lsof | grep /tmp |awk '{print $9}'|sed -e '1 d' |sort |uniq | tr \\n \|`" | xargs sudo rm -vf
echo -e "\nUpdating the system: "
sudo apt-get -q -y update > /dev/null
sudo apt-get -y clean
sudo apt-get -y update > /dev/null
echo -e "\nInstalling MySQL: "