Reset yum configuration in post-install.d

When using the yum element, we should reset the changes we've made to
/etc/yum.conf during post-install.d. Otherwise, this build time
configuration is propagated into booted instances.

Change-Id: I1eea586ca0fefe9bc0cf91fedefcbd141a536fa2
This commit is contained in:
James Slagle 2014-09-11 20:59:50 -04:00
parent f4011996ee
commit 8175a7ef4d

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -eux
set -o pipefail
sudo sed -i 's/keepcache=1/keepcache=0/' /etc/yum.conf
sudo sed -i 's/cachedir=\/tmp\/yum/cachedir=\/var\/cache\/yum/' /etc/yum.conf