edex component.spec should not exit if radar table update is not neccessary (fresh install).
This commit is contained in:
parent
3e94446166
commit
cd4c3e73fc
1 changed files with 4 additions and 4 deletions
|
@ -197,11 +197,11 @@ END;
|
||||||
/awips2/psql/bin/psql -U ${DB_OWNER} -d metadata -c "${SQL}"
|
/awips2/psql/bin/psql -U ${DB_OWNER} -d metadata -c "${SQL}"
|
||||||
if [[ $? != 0 ]]
|
if [[ $? != 0 ]]
|
||||||
then
|
then
|
||||||
echo "Failed to update radar table."
|
echo "Radar update not needed. Continuing..."
|
||||||
exit 1
|
else
|
||||||
|
/awips2/psql/bin/psql -U ${DB_OWNER} -d metadata -c "UPDATE radar SET volumescannumber=0 WHERE volumescannumber IS NULL;"
|
||||||
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
/awips2/psql/bin/psql -U ${DB_OWNER} -d metadata -c "UPDATE radar SET volumescannumber=0 WHERE volumescannumber IS NULL;"
|
|
||||||
echo "Done"
|
|
||||||
|
|
||||||
# stop PostgreSQL if we started it.
|
# stop PostgreSQL if we started it.
|
||||||
if [ "${I_STARTED_POSTGRESQL}" = "YES" ]; then
|
if [ "${I_STARTED_POSTGRESQL}" = "YES" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue