This reverts commit95e7f4fc0c
[formerlyaecc6a8474
] [formerlyf8497470fc
[formerlyb33c5bdfcf
]] [formerlya2c0893d1a
] [formerly06f1c7b73c
[formerlyddde63eee0
] [formerly06f1c7b73c
[formerlyddde63eee0
] [formerlya2c0893d1a
[formerly 5e2f5e9bc2b0559c3101cc0c3af708858e3b95d1]]]]. Former-commit-id:62cf6a9f92
[formerlyb4b1f6975f
] [formerly62cf6a9f92
[formerlyb4b1f6975f
] [formerly25198a5cd6
[formerly 8cdb21fda317373a0dc95e5048716d0e31412ab4]]] Former-commit-id:25198a5cd6
Former-commit-id:333fd9c64e
[formerly8367fb50f5
] Former-commit-id:75f77df418
39 lines
1.4 KiB
Bash
39 lines
1.4 KiB
Bash
#!/bin/bash
|
|
# This script will remove the existing monitoringArea files from
|
|
# fog, safeseas, and snow site directories.
|
|
#
|
|
# This update needs to be performed with build 12.6.1.
|
|
#
|
|
|
|
echo ""
|
|
echo "Press Enter to perform the updates Ctrl-C to quit."
|
|
read done
|
|
|
|
if [ -d /awips2/edex/data/utility/common_static/site ]; then
|
|
cd /awips2/edex/data/utility/common_static/site
|
|
if [ $? -ne 0 ]; then
|
|
echo "FATAL: Site directories do not exist!"
|
|
exit 1
|
|
fi
|
|
for site in `ls -1d *`;
|
|
do
|
|
for comp in fog safeseas snow
|
|
do
|
|
echo "INFO: Removing files from /awips2/edex/data/utility/common_static/site/$site/$comp/monitoringArea"
|
|
if [ -d /awips2/edex/data/utility/common_static/site/${site}/${comp}/monitoringArea ]; then
|
|
cd /awips2/edex/data/utility/common_static/site/${site}/${comp}/monitoringArea
|
|
if [ $? -ne 0 ]; then
|
|
echo "FATAL: Could not change directory to site/$site/$comp/monitoringArea directory"
|
|
else
|
|
rm /awips2/edex/data/utility/common_static/site/${site}/${comp}/monitoringArea/*
|
|
if [ $? -ne 0 ]; then
|
|
echo "FATAL: Could not remove files from /awips2/edex/data/utility/common_static/site/$site/$comp/monitoringArea"
|
|
fi
|
|
fi
|
|
fi
|
|
done
|
|
done
|
|
echo "INFO: This update was successful."
|
|
fi
|
|
|
|
exit 0
|