install scrip updates

Former-commit-id: 1c153f42ae
Former-commit-id: 591aeb6e57
This commit is contained in:
mjames-upc 2015-10-20 13:46:27 -06:00
parent d990a5a665
commit efa90dc8bc
2 changed files with 39 additions and 10 deletions

View file

@ -5,16 +5,35 @@
#
# 10/15 mjames@ucar.edu Creation
#
#
## Download awips2.repo from the Unidata web server
#
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 ''
fi
echo ''
echo "Running 'yum clean all'"
echo ''
yum clean all
##
## If CAVE is not installed them make sure /awips2/cave/
## and /awips2/alertviz/ are removed before installing.
##
if [[ $(rpm -qa | grep awips2-cave) ]]; then
echo "found CAVE RPMs installed"
else
echo " CAVE RPMs not installled"
echo ""
echo " cleaning up /awips2/cave/, /awips2/alertviz/"
rm -rf /awips2/cave/ /awips2/alertviz/
fi
echo ''
echo "Running 'yum groupinstall awips2-cave'"
echo ''
@ -36,5 +55,4 @@ echo ""
echo " to run cave:"
echo ""
echo " /awips2/cave/cave.sh"
echo ""
exit

View file

@ -15,6 +15,22 @@ echo ''
echo "Running 'yum clean all'"
echo ''
yum clean all
if [[ $(rpm -qa | grep awips2-edex) ]]; then
echo "found EDEX RPMs installed"
else
echo " EDEX RPMs not installled"
echo ""
echo " cleaning up /awips2/edex/, /awips2/data/"
rm -rf /awips2/edex/ /awips2/data/
fi
service edex_camel stop
service qpidd stop
service httpd-pypies stop
service edex_postgres stop
echo ''
echo "Running 'yum groupinstall awips2-server'"
echo ''
@ -30,9 +46,4 @@ fi
echo ""
echo "Done..."
echo ""
echo " to run EDEX:"
echo ""
echo " edex start"
echo ' su ldm -c "ldmadmin mkqueue" && su ldm -c "ldmadmin start"'
echo ""
exit