diff options
author | Seth Chisamore <schisamo@chef.io> | 2018-11-01 14:56:47 -0400 |
---|---|---|
committer | Seth Chisamore <schisamo@chef.io> | 2018-11-01 14:56:47 -0400 |
commit | bea27fc8d8b1fc78637c5a6f86f7eb50ddbd9f74 (patch) | |
tree | 410f9ad6bc6f7e1101ec2594030c69268282e604 /ci | |
parent | 91bae4d97cabfd849501a254720f01cfc177ec64 (diff) | |
download | chef-bea27fc8d8b1fc78637c5a6f86f7eb50ddbd9f74.tar.gz |
Add some additonal RPM db cleanup steps missed in #7845
Signed-off-by: Seth Chisamore <schisamo@chef.io>
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 |