Blame tests/p_anaconda/anaconda_centos_patch.sh

Athmane Madjoudj a2faee
#!/bin/sh
Athmane Madjoudj a2faee
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
t_Log "Running $0 - CentOS Anaconda patch is applied test."
Athmane Madjoudj a2faee
20a4c0
if [ "$centos_ver" = "7" ];then
20a4c0
  ANACONDA_PATH=/usr/lib64/python2.7/site-packages/pyanaconda/
20a4c0
else
20a4c0
  ANACONDA_PATH=/usr/lib/anaconda/
20a4c0
fi
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
(grep "id = \"centos\"" $ANACONDA_PATH/installclasses/rhel.py >/dev/null 2>&1) &&\
Athmane Madjoudj a2faee
Athmane Madjoudj 66dad5
(grep "name = N_(\"CentOS Linux\")" $ANACONDA_PATH/installclasses/rhel.py >/dev/null 2>&1) 
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
t_CheckExitStatus $?