IDEMPIERE-3849 RUN_MonitoredSyncDB.sh - add flag Error=true to ease log monitoring

This commit is contained in:
Carlos Ruiz 2019-03-26 15:23:58 -03:00
parent 1fe927b392
commit 291c9b4182
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ select count(*) from ad_migrationscript where name='$BASEFIX';" | $SILENTCMD | s
notify_error()
{
echo -e "$MSGERROR"
printf '\n%s\n' "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
printf '\n%s\n%s\n' "Error=true" "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
SUPPORTEMAIL=$(echo "set heading off
set feedback off
set pagesize 0

View File

@ -174,7 +174,7 @@ process_fix()
notify_error()
{
echo -e "$MSGERROR"
printf '\n%s\n' "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
printf '\n%s\n%s\n' "Error=true" "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
SUPPORTEMAIL=$($SILENTCMD -c "select supportemail from ad_system" | sed -e 's/ //g')
SENDMAIL=$(command -v sendmail)
FROM="$(whoami)@$(hostname)"