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.
37 lines
928 B
37 lines
928 B
#!/bin/bash
|
|
# Author: Fabian Arrotin <arrfab@centos.org>
|
|
|
|
t_Log "Running $0 - /etc/os-release has correct ABRT string for CentOS $centos_ver"
|
|
|
|
if [ "$centos_ver" -ge 7 ];then
|
|
if [[ $centos_stream == "no" ]]; then
|
|
for string in CENTOS_MANTISBT_PROJECT=\"CentOS-$centos_ver\" CENTOS_MANTISBT_PROJECT_VERSION=\"$centos_ver\"
|
|
do
|
|
grep -q $string /etc/os-release
|
|
if [ $? -ne "0" ];then
|
|
t_Log "missing string $string in os-release file !"
|
|
exit 1
|
|
fi
|
|
done
|
|
else
|
|
echo "Skipping for CentOS Stream" ; exit 0
|
|
fi
|
|
|
|
if [ "$centos_ver" -eq 7 ]; then
|
|
for string in REDHAT_SUPPORT_PRODUCT=\"centos\" REDHAT_SUPPORT_PRODUCT_VERSION=\"$centos_ver\"
|
|
do
|
|
grep -q $string /etc/os-release
|
|
if [ $? -ne "0" ];then
|
|
t_Log "missing string $string in os-release file !"
|
|
exit 1
|
|
fi
|
|
done
|
|
fi
|
|
else
|
|
echo "Skipping for CentOS 5 and 6 ..." ; exit 0
|
|
|
|
fi
|
|
|
|
t_CheckExitStatus $?
|
|
|