Amend: Corrected comment in convertPluginNameToDataType.sh Change-Id: I5e0084704cef599d368165058b8008bbb2bc8e18 Former-commit-id:f8aacc2e50
[formerly6a0e9c331b
] [formerly 15f32005a9540656181b4b6540a90261c4384280 [formerly03dd42463e
]] [formerlydfef89ee64
[formerly03dd42463e
[formerly a2391d76c91d3d2b86b8e74eed1e0754091650a0]]] Former-commit-id:dfef89ee64
Former-commit-id: 50e1b1845799292ee1dd0352a97bb78fa276ca05 [formerlye495a5f663
] Former-commit-id:936facbe86
23 lines
499 B
Bash
23 lines
499 B
Bash
#!/bin/bash
|
|
|
|
SQL_SCRIPT="convertPluginNameToDataType.sql"
|
|
|
|
# ensure that the sql script is present
|
|
if [ ! -f ${SQL_SCRIPT} ]; then
|
|
echo "ERROR: the required sql script - ${SQL_SCRIPT} was not found."
|
|
echo "FATAL: the update has failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "INFO: update started"
|
|
|
|
# run the update
|
|
/awips2/psql/bin/psql -U awips -d metadata -f ${SQL_SCRIPT}
|
|
if [ $? -ne 0 ]; then
|
|
echo "FATAL: the update has failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "INFO: the update has completed successfully!"
|
|
|
|
exit 0
|