diff options
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/verify-chef.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/verify-chef.sh b/ci/verify-chef.sh index a171f3428b..b6dafa33e4 100755 --- a/ci/verify-chef.sh +++ b/ci/verify-chef.sh @@ -9,8 +9,10 @@ set -evx if [ -f /etc/redhat-release ]; then major_version=`sed 's/^.\+ release \([0-9]\+\).*/\1/' /etc/redhat-release` if [ "$major_version" -lt "7" ]; then - sudo rm -rf /var/lib/rpm/__db.00* + sudo rm -rf /var/lib/rpm/__db* + sudo db_verify /var/lib/rpm/Packages sudo rpm --rebuilddb + sudo yum clean all fi fi |