Use recursive remove and clean for apt (OPS-508)

This commit is contained in:
James Fryman
2019-04-29 16:20:27 -05:00
committed by Manoj doshi
parent 5214b3c1b0
commit 63eeb8d734

View File

@@ -34,7 +34,8 @@ if [ "${pkgtype}" = "dpkg" ] ; then
echo "deb ${REPO_ROOT}/${DEB_REPO} ${DISTRO} ${COMPONENT}" >> /etc/apt/sources.list
# sometimes update fails and requires a cleanup
if ! apt -y update ; then
rm -vf /var/lib/apt/lists/*
rm -rvf /var/lib/apt/lists/*
apt-get clean
apt -y update
fi
apt-get -y install rippled