CLOUDSTACK-9584: Fix Travis to cleanup apt repo before pkg installation

This fixes an env issue that cleans apt repo pkg/cache, before installing new
packages.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2016-12-02 22:20:28 +05:30
parent b57d0ae7c3
commit 7da423157b
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: "