git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5225
91ce42f0-d328-0410-95d8-
f526ca767f89
}
Run After Failed Job = "/bin/echo RunAfterFailedJob"
+ RunScript {
+ Command = "/bin/echo touching /tmp/RUN_FD_FAILED"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+ RunScript {
+ Command = "/bin/touch /tmp/RUN_FD_FAILED"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
}
#@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
b=$?
grep 'dir: AfterJob: run command "/bin/echo RunAfterFailedJob"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
c=$?
-grep '*** Backup Error ***' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+grep 'touching' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
d=$?
-if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 ]
+grep '*** Backup Error ***' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+e=$?
+if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 -a $e = 0 ]
then
[ "$debug" = 1 ] && echo RUN_FD_FAILED ok
else