Blame tests/p_abrt/abrt_gpg_keys_test.sh

Athmane Madjoudj 6a3232
#!/bin/sh
Athmane Madjoudj 6a3232
# Author: Athmane Madjoudj <athmanem@gmail.com>
295ce6
#	  Christoph Galuschka <tigalch@tigalch.org>
Athmane Madjoudj 6a3232
# Note: This was a known issue in CentOS 6.0
Athmane Madjoudj 6a3232
# See: http://bugs.centos.org/view.php?id=4993
295ce6
# Christoph Galuschka: added functionality for C7
Athmane Madjoudj 6a3232
Athmane Madjoudj 6a3232
t_Log "Running $0 -  check that abrt is using CentOS' gpg keys."
Athmane Madjoudj 6a3232
295ce6
if [ "$centos_ver" = "7" ] ;then
295ce6
    ls /etc/pki/rpm-gpg/ | grep -q "RPM-GPG-KEY-CentOS"
295ce6
elif [ "$centos_ver" = "6" ] ; then
Athmane Madjoudj 27c878
    grep -q "RPM-GPG-KEY-CentOS" /etc/abrt/gpg_keys
Athmane Madjoudj 27c878
else 
Athmane Madjoudj 27c878
    echo "Skipped on CentOS 5"
Athmane Madjoudj 27c878
fi
Athmane Madjoudj 6a3232
Athmane Madjoudj 6a3232
t_CheckExitStatus $?