can now run 'installEDEX.sh reinstall'

Former-commit-id: 1e146fafef
This commit is contained in:
mjames-upc 2016-01-07 11:29:27 -07:00
parent c3ddda3d48
commit f57b6a502f
2 changed files with 11 additions and 1 deletions

0
installCAVE.sh Normal file → Executable file
View file

12
installEDEX.sh Normal file → Executable file
View file

@ -16,7 +16,6 @@ echo "Running 'yum clean all'"
echo ''
yum clean all
if [[ $(rpm -qa | grep awips2-edex) ]]; then
echo "found EDEX RPMs installed"
else
@ -31,6 +30,7 @@ service qpidd stop
service httpd-pypies stop
service edex_postgres stop
service edex_ldm stop
service qpidd stop
# check that /awips2/data_store exists, if not, create it
if [ ! -d /awips2/data_store ]; then
@ -38,6 +38,16 @@ if [ ! -d /awips2/data_store ]; then
fi
chown -R awips:fxalpha /awips2/data_store
if [[ $1 -eq "reinstall" ]]; then
echo ''
echo 'Removing and reinstalling EDEX...'
echo ''
echo "Running 'yum groupremove awips2-server'"
echo ''
yum groupremove awips2-server -y 2>&1 /dev/null
rm -rf /awips2/data/ awips2/database/
fi
echo ''
echo "Running 'yum groupinstall awips2-server'"
echo ''