Amend: Corrected comment in convertPluginNameToDataType.sh Change-Id: I5e0084704cef599d368165058b8008bbb2bc8e18 Former-commit-id:6a0e9c331b
[formerly03dd42463e
] [formerly6a0e9c331b
[formerly03dd42463e
] [formerlydfef89ee64
[formerly a2391d76c91d3d2b86b8e74eed1e0754091650a0]]] Former-commit-id:dfef89ee64
Former-commit-id:936facbe86
[formerlye495a5f663
] Former-commit-id:5e69b61418
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
|