dom0-updates: fix dnf.conf path

If dnf.conf is there, really use it instead of yum.conf.

Fixes 10399e8a "dom0-updates: improve dnf config handling"
This commit is contained in:
Marek Marczykowski-Górecki 2019-08-25 13:24:13 +02:00
parent 045653c966
commit 347f98b8b6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -7,7 +7,7 @@ CLEAN=0
CHECK_ONLY=0
OPTS="--installroot $DOM0_UPDATES_DIR"
if [ -f "$DOM0_UPDATES_DIR/etc/dnf/dnf.conf" ]; then
OPTS="$OPTS --config=$DOM0_UPDATES_DIR/etc/yum.conf"
OPTS="$OPTS --config=$DOM0_UPDATES_DIR/etc/dnf/dnf.conf"
elif [ -f "$DOM0_UPDATES_DIR/etc/yum.conf" ]; then
OPTS="$OPTS --config=$DOM0_UPDATES_DIR/etc/yum.conf"
fi