Merge "Set and export DIB_RELEASE for centos7"
This commit is contained in:
commit
9e42c69c80
@ -1 +1,2 @@
|
||||
export DIB_RELEASE=GenericCloud
|
||||
export DISTRO_NAME=centos7
|
||||
|
@ -25,7 +25,7 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $DIB_RELEASE -ge 22 ]; then
|
||||
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
|
||||
mkdir -p /etc/dnf/vars
|
||||
echo $basearch > /etc/dnf/vars/basearch
|
||||
echo $arch > /etc/dnf/vars/basearch
|
||||
|
@ -6,7 +6,7 @@ fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
if [ $DIB_RELEASE -ge 22 ]; then
|
||||
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
|
||||
cfg=/etc/dnf/dnf.conf
|
||||
else
|
||||
cfg=/etc/yum.conf
|
||||
|
@ -6,7 +6,7 @@ fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
if [ $DIB_RELEASE -ge 22 ]; then
|
||||
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
|
||||
# dnf is slightly different; doesn't have these by default
|
||||
cfg=/etc/dnf/dnf.conf
|
||||
echo "keepcache=1" >> $cfg
|
||||
|
Loading…
Reference in New Issue
Block a user