Issue #1972 remove unused tags from XML

Change-Id: I0577d9920405ba99fd22e6fcc0eaee19eb43897e

Former-commit-id: 9c922d14e6 [formerly e7a2c5f2c3] [formerly 9c922d14e6 [formerly e7a2c5f2c3] [formerly 1b978a332a [formerly 1181f5d9828f6a64491841c7aae6ebb560d71c1f]]]
Former-commit-id: 1b978a332a
Former-commit-id: 120876cd2e [formerly 4fe9ae7a98]
Former-commit-id: 2114a62c76
This commit is contained in:
Dave Hladky 2013-05-02 16:18:38 -05:00
parent 8dac3e828a
commit 84a9d6a35d
2 changed files with 35 additions and 4 deletions

View file

@ -0,0 +1,34 @@
#!/bin/bash
# This script will update any *-harvester.xml files
# to use grid data in place of grib
#
# This update needs to be performed with build 13.5.1.
# This update is only for edex servers which host *-harvester.xml files
echo ""
echo "Press Enter to perform the updates Ctrl-C to quit."
read done
files=`find /awips2/edex/data/utility/common_static -iname \*-harvester.xml`
if [ $? -ne 0 ]; then
echo "FATAL: Update Failed!"
exit 1
fi
for f in $files; do
echo Updating $f
bf=$f.bak.`date +%m%d%y`
cp $f $bf
# remove the registry backup tags
awk -F '/' ' { gsub(/<primaryRegistryHost>127.0.0.1<\/primaryRegistryHost>/,"");
gsub(/<secondaryRegistryHost>127.0.0.1<\/secondaryRegistryHost>/,"");
gsub(/<tertiaryRegistryHost>127.0.0.1<\/tertiaryRegistryHost>/,"");
print; } ' $bf > $f
done
echo "INFO: The update finished successfully."
exit 0

View file

@ -7,7 +7,7 @@
<provider serviceType="WFS" name="METAROGC">
<connection>
<!-- for OGC it's your FQDN -->
<url>http://127.0.0.1:8085</url>
<url>http://your.url.here:8085</url>
</connection>
<providerType>Point</providerType>
<projection type="LatLon">
@ -15,9 +15,6 @@
<description>METAR Test LatLon Coverage</description>
</projection>
</provider>
<primaryRegistryHost>127.0.0.1</primaryRegistryHost>
<secondaryRegistryHost>127.0.0.1</secondaryRegistryHost>
<tertiaryRegistryHost>127.0.0.1</tertiaryRegistryHost>
<agent xsi:type="ogcAgent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<dateFormat>HHddMMMyyyy</dateFormat>
<layer name="metar">