Merge branch 'unidata_14.4.1' of github.com:Unidata/awips2 into unidata_14.4.1
Former-commit-id: 10d772271f
This commit is contained in:
commit
aa28c8b4af
5 changed files with 60 additions and 26 deletions
|
@ -5,16 +5,35 @@
|
||||||
#
|
#
|
||||||
# 10/15 mjames@ucar.edu Creation
|
# 10/15 mjames@ucar.edu Creation
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
## Download awips2.repo from the Unidata web server
|
||||||
|
#
|
||||||
|
|
||||||
if [ ! -f /etc/yum.repos.d/awips2.repo ]; then
|
if [ ! -f /etc/yum.repos.d/awips2.repo ]; then
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Downloading awips2repo yum file to /etc/yum.repos.d/awips2.repo'
|
echo 'Downloading awips2repo yum file to /etc/yum.repos.d/awips2.repo'
|
||||||
echo ''
|
echo ''
|
||||||
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/awips2.repo
|
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
|
fi
|
||||||
echo ''
|
|
||||||
echo "Running 'yum clean all'"
|
##
|
||||||
echo ''
|
## If CAVE is not installed them make sure /awips2/cave/
|
||||||
yum clean all
|
## 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 ''
|
||||||
echo "Running 'yum groupinstall awips2-cave'"
|
echo "Running 'yum groupinstall awips2-cave'"
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -36,5 +55,4 @@ echo ""
|
||||||
echo " to run cave:"
|
echo " to run cave:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " /awips2/cave/cave.sh"
|
echo " /awips2/cave/cave.sh"
|
||||||
echo ""
|
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -15,6 +15,22 @@ echo ''
|
||||||
echo "Running 'yum clean all'"
|
echo "Running 'yum clean all'"
|
||||||
echo ''
|
echo ''
|
||||||
yum clean all
|
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 ''
|
||||||
echo "Running 'yum groupinstall awips2-server'"
|
echo "Running 'yum groupinstall awips2-server'"
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -30,9 +46,4 @@ fi
|
||||||
echo ""
|
echo ""
|
||||||
echo "Done..."
|
echo "Done..."
|
||||||
echo ""
|
echo ""
|
||||||
echo " to run EDEX:"
|
|
||||||
echo ""
|
|
||||||
echo " edex start"
|
|
||||||
echo ' su ldm -c "ldmadmin mkqueue" && su ldm -c "ldmadmin start"'
|
|
||||||
echo ""
|
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -113,23 +113,25 @@ fi
|
||||||
echo -e "\nInstalling A2 gdm PostSession Default script"
|
echo -e "\nInstalling A2 gdm PostSession Default script"
|
||||||
scp /etc/gdm/PostSession/awips2VisualizeUtility.sh /etc/gdm/PostSession/Default
|
scp /etc/gdm/PostSession/awips2VisualizeUtility.sh /etc/gdm/PostSession/Default
|
||||||
|
|
||||||
pushd . > /dev/null 2>&1
|
#pushd . > /dev/null 2>&1
|
||||||
cd /awips2/alertviz/plugins
|
#cd /awips2/alertviz/plugins
|
||||||
# Forcefully unzip: org.eclipse.swt.gtk.linux.x86_64_*.jar
|
# Forcefully unzip: org.eclipse.swt.gtk.linux.x86_64_*.jar
|
||||||
# : if x86_64
|
# : if x86_64
|
||||||
if [ -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar ]; then
|
#if [ -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar ]; then
|
||||||
mkdir org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
# mkdir org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
||||||
unzip -qq org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar \
|
# unzip -qq org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar \
|
||||||
-d org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
# -d org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
||||||
rm -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
# rm -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
mv org.eclipse.swt.gtk.linux.x86_64_%{_swt_version} \
|
# mv org.eclipse.swt.gtk.linux.x86_64_%{_swt_version} \
|
||||||
org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
# org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
popd > /dev/null 2>&1
|
#popd > /dev/null 2>&1
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
rm -rf org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
%postun
|
%postun
|
||||||
|
rm -rf org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
|
@ -16,7 +16,7 @@ Packager: Michael James
|
||||||
|
|
||||||
AutoReq: no
|
AutoReq: no
|
||||||
Requires: awips2-tools, awips2-edex-configuration, awips2-database-standalone-configuration
|
Requires: awips2-tools, awips2-edex-configuration, awips2-database-standalone-configuration
|
||||||
Requires: awips2-qpid-java-broker, awips2-postgresql, awips2-httpd-pypies
|
Requires: awips2-qpid-java-broker, awips2-postgresql, awips2-httpd-pypies, awips2-ldm
|
||||||
Requires: ksh, libstdc++(x86-32), libgfortran(x86-32)
|
Requires: ksh, libstdc++(x86-32), libgfortran(x86-32)
|
||||||
|
|
||||||
provides: awips2-edex-upc
|
provides: awips2-edex-upc
|
||||||
|
|
|
@ -40,7 +40,7 @@ EDEX_ENV_FILE=${EDEX_PATH}/bin/setup.env
|
||||||
LDMD_CONF=${AWIPS_HOME}/ldm/etc/ldmd.conf
|
LDMD_CONF=${AWIPS_HOME}/ldm/etc/ldmd.conf
|
||||||
|
|
||||||
# valid options
|
# valid options
|
||||||
options=( 'status' 'start' 'stop' 'log' 'setup' 'test' 'purge')
|
options=( 'status' 'start' 'stop' 'log' 'setup' 'purge')
|
||||||
nopts=${options[@]}
|
nopts=${options[@]}
|
||||||
|
|
||||||
# find interface for routeable IPs
|
# find interface for routeable IPs
|
||||||
|
@ -202,7 +202,6 @@ edit_pg() { # edex pg_hba.conf
|
||||||
|
|
||||||
edit_ldm() { # edex ldmd.conf and registry.xml
|
edit_ldm() { # edex ldmd.conf and registry.xml
|
||||||
sed -i.setup_$YMD 's/EDEX_HOSTNAME/'$HOSTNAME'/g' $LDMD_CONF
|
sed -i.setup_$YMD 's/EDEX_HOSTNAME/'$HOSTNAME'/g' $LDMD_CONF
|
||||||
regutil -s "1500" /queue/size
|
|
||||||
echo '[edit] Hostname '$HOSTNAME' added to '$LDMD_CONF
|
echo '[edit] Hostname '$HOSTNAME' added to '$LDMD_CONF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,6 +328,7 @@ edex_start() { # start all edex services
|
||||||
su -c "service edex_postgres start"
|
su -c "service edex_postgres start"
|
||||||
su -c "service httpd-pypies start"
|
su -c "service httpd-pypies start"
|
||||||
su -c "service qpidd start"
|
su -c "service qpidd start"
|
||||||
|
edex_purge_reset
|
||||||
su -c "service edex_camel start"
|
su -c "service edex_camel start"
|
||||||
su -c "service edex_ldm start"
|
su -c "service edex_ldm start"
|
||||||
}
|
}
|
||||||
|
@ -344,7 +344,7 @@ edex_stop() { # stop all edex services
|
||||||
|
|
||||||
edex_purge() {
|
edex_purge() {
|
||||||
if [ "${args[1]}" == 'reset' ]; then
|
if [ "${args[1]}" == 'reset' ]; then
|
||||||
su awips -c 'psql metadata -c "update purgejobs set failedcount = 0;"' >& /dev/null
|
edex_purge_reset
|
||||||
echo ' EDEX purge has been reset'
|
echo ' EDEX purge has been reset'
|
||||||
exit;
|
exit;
|
||||||
else
|
else
|
||||||
|
@ -355,6 +355,9 @@ edex_purge() {
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
edex_purge_reset() {
|
||||||
|
su awips -c 'psql metadata -c "update purgejobs set failedcount = 0;"' >& /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
edex_options() { # print out options for this programs
|
edex_options() { # print out options for this programs
|
||||||
echo ''
|
echo ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue