awips2/deltaScripts/14.4.1/DR3318/dbupdate.sh
Roger Ferrel 37eb414dd0 Omaha #3318 split deltascript one for dx1 the other for dx2.
Change-Id: If230b4c1bb24b4d2d9b73b357019275534803691

Former-commit-id: 8ea817f6d0 [formerly abbaca59ff431f420bc700ad11de3cda89f82277]
Former-commit-id: 44029681c8
2014-08-01 14:13:25 -05:00

19 lines
396 B
Bash
Executable file

#!/bin/bash
# DR #3318 - this update awips.metadata.grid_info and needs to run on dx1.
echo 'INFO: Update gridinfo'
/awips2/psql/bin/psql -U awips -d metadata -c "update grid_info set
datasetid='GEFS' where datasetid='gefs'"
if [ $? -ne 0 ] ; then
echo 'ERROR unable to update database'
exit 1
fi
echo 'INFO: Update gridinfo successful.'
echo 'INFO: Has renameGefs.py been run on dx2?'