diskimage-builder/elements/yum/pre-install.d/01-yum-keepcache

8 lines
161 B
Plaintext
Raw Normal View History

#!/bin/bash
set -eu
set -o pipefail
sed -i 's/keepcache=0/keepcache=1/' /etc/yum.conf
sed -i 's/cachedir=\/var\/cache\/yum/cachedir=\/tmp\/yum/' /etc/yum.conf