From cd4c3e73fc42d1530a52890a1fff8cb59bd01fc7 Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Sat, 23 Jan 2016 13:55:58 -0600 Subject: [PATCH] edex component.spec should not exit if radar table update is not neccessary (fresh install). --- rpms/awips2.edex/Installer.edex/component.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpms/awips2.edex/Installer.edex/component.spec b/rpms/awips2.edex/Installer.edex/component.spec index 72dd04e9f2..bc1f7f2ffb 100644 --- a/rpms/awips2.edex/Installer.edex/component.spec +++ b/rpms/awips2.edex/Installer.edex/component.spec @@ -197,11 +197,11 @@ END; /awips2/psql/bin/psql -U ${DB_OWNER} -d metadata -c "${SQL}" if [[ $? != 0 ]] then - echo "Failed to update radar table." - exit 1 + echo "Radar update not needed. Continuing..." +else + /awips2/psql/bin/psql -U ${DB_OWNER} -d metadata -c "UPDATE radar SET volumescannumber=0 WHERE volumescannumber IS NULL;" + echo "Done" 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. if [ "${I_STARTED_POSTGRESQL}" = "YES" ]; then