diff options
author | Tim Smith <tsmith@chef.io> | 2018-11-01 12:16:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-01 12:16:34 -0700 |
commit | f1b21ca6ae326cce93e2143affbc5a35989ec53c (patch) | |
tree | 410f9ad6bc6f7e1101ec2594030c69268282e604 | |
parent | 91bae4d97cabfd849501a254720f01cfc177ec64 (diff) | |
parent | bea27fc8d8b1fc78637c5a6f86f7eb50ddbd9f74 (diff) | |
download | chef-f1b21ca6ae326cce93e2143affbc5a35989ec53c.tar.gz |
Merge pull request #7846 from chef/schisamo/cleanup-rpmdb-2
Add some additonal RPM db cleanup steps missed in #7845
-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 |