installl scripts should account for el7 repo

This commit is contained in:
Michael James 2016-08-23 21:53:55 +00:00 committed by Michael James
parent 1edb05df52
commit c3320669b2
2 changed files with 16 additions and 5 deletions

View file

@ -15,12 +15,17 @@ if [ ! -f /etc/yum.repos.d/awips2.repo ]; then
echo ''
echo 'Downloading awips2repo yum file to /etc/yum.repos.d/awips2.repo'
echo ''
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/awips2.repo
echo "Running 'yum clean all'"
yum clean all
echo ''
if [[ $(grep "release 7" /etc/redhat-release) ]]; then
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/el7.repo
else
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/awips2.repo
fi
fi
echo "Running 'yum clean all'"
yum clean all
echo ''
#
# If CAVE is not installed them make sure /awips2/cave/
# and /awips2/alertviz/ are removed before installing.

View file

@ -9,11 +9,17 @@
#
# Download yum repo file from Unidata
#
if [ ! -f /etc/yum.repos.d/awips2.repo ]; then
echo ''
echo 'Downloading awips2repo yum file to /etc/yum.repos.d/awips2.repo'
echo ''
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/awips2.repo
if [[ $(grep "release 7" /etc/redhat-release) ]]; then
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/el7.repo
else
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/awips2.repo
fi
fi
#