You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
501 B
20 lines
501 B
12 months ago
|
#!/bin/sh
|
||
|
|
||
|
t_Log "Running $0 - Yum configuration has the correct distroverpkg value test."
|
||
|
|
||
|
if [ "$centos_ver" -ge "8" ] ; then
|
||
|
t_Log "CentOS$ver, SKIP"
|
||
|
exit 0
|
||
|
fi
|
||
|
#add centos-userland-release for armhfp
|
||
|
uname_arch=$(uname -m)
|
||
|
if [ "$uname_arch" == "armv7l" ]; then
|
||
|
rel_string="centos-userland-release"
|
||
|
else
|
||
|
rel_string="centos-release"
|
||
|
fi
|
||
|
|
||
|
ProvierTag=$(grep distroverpkg /etc/yum.conf | cut -f2 -d'=')
|
||
|
rpm -q --whatprovides ${ProvierTag} | grep "$rel_string" > /dev/null
|
||
|
t_CheckExitStatus $?
|