From 291c9b418232618be164b9441f95c800491e3a3e Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 26 Mar 2019 15:23:58 -0300 Subject: [PATCH] IDEMPIERE-3849 RUN_MonitoredSyncDB.sh - add flag Error=true to ease log monitoring --- .../utils.unix/oracle/MonitoredSyncDB.sh | 2 +- .../utils.unix/postgresql/MonitoredSyncDB.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.server-feature/utils.unix/oracle/MonitoredSyncDB.sh b/org.adempiere.server-feature/utils.unix/oracle/MonitoredSyncDB.sh index eadde68131..af2de114c9 100755 --- a/org.adempiere.server-feature/utils.unix/oracle/MonitoredSyncDB.sh +++ b/org.adempiere.server-feature/utils.unix/oracle/MonitoredSyncDB.sh @@ -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 diff --git a/org.adempiere.server-feature/utils.unix/postgresql/MonitoredSyncDB.sh b/org.adempiere.server-feature/utils.unix/postgresql/MonitoredSyncDB.sh index 73a628ee34..9ac49fba66 100755 --- a/org.adempiere.server-feature/utils.unix/postgresql/MonitoredSyncDB.sh +++ b/org.adempiere.server-feature/utils.unix/postgresql/MonitoredSyncDB.sh @@ -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)"