installl scripts should account for el7 repo
This commit is contained in:
parent
1edb05df52
commit
c3320669b2
2 changed files with 16 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue