Blame tests/p_centos-release/centos-release_release_compat_symlinks.sh
|
Athmane Madjoudj |
5827ae |
#!/bin/sh
|
|
Athmane Madjoudj |
5827ae |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
Athmane Madjoudj |
5827ae |
|
|
Athmane Madjoudj |
5827ae |
t_Log "Running $0 - /etc/centos-release compatibility symbolic links test."
|
|
Athmane Madjoudj |
66dad5 |
if (t_GetPkgRel basesystem | grep -q el6)
|
|
Athmane Madjoudj |
66dad5 |
then
|
|
Athmane Madjoudj |
5827ae |
|
|
Athmane Madjoudj |
5827ae |
grep "CentOS" /etc/centos-release >/dev/null 2>&1
|
|
Athmane Madjoudj |
5827ae |
(file /etc/redhat-release | grep "symbolic link to .centos-release." >/dev/null 2>&1) &&\
|
|
Athmane Madjoudj |
5827ae |
(file /etc/system-release | grep "symbolic link to .centos-release." >/dev/null 2>&1)
|
|
Athmane Madjoudj |
5827ae |
|
|
Athmane Madjoudj |
66dad5 |
else
|
|
Athmane Madjoudj |
66dad5 |
echo "This test is not comptatible with CentOS <= 5"
|
|
Athmane Madjoudj |
66dad5 |
fi
|
|
Athmane Madjoudj |
66dad5 |
|
|
Athmane Madjoudj |
5827ae |
t_CheckExitStatus $?
|