IDEMPIERE-3849 RUN_MonitoredSyncDB.sh - add flag Error=true to ease log monitoring
This commit is contained in:
parent
1fe927b392
commit
291c9b4182
|
@ -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
|
||||
|
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue