Issue #1972 remove unused tags from XML
Change-Id: I0577d9920405ba99fd22e6fcc0eaee19eb43897e Former-commit-id: 1181f5d9828f6a64491841c7aae6ebb560d71c1f
This commit is contained in:
parent
b438ff7294
commit
1b978a332a
2 changed files with 35 additions and 4 deletions
34
deltaScripts/13.5.1/removeRegistryBackupTags.sh
Normal file
34
deltaScripts/13.5.1/removeRegistryBackupTags.sh
Normal 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
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue