git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5324
91ce42f0-d328-0410-95d8-
f526ca767f89
Run After Failed Job = "/bin/echo RunAfterFailedJob"
RunScript {
- Command = "/bin/echo touching /tmp/RUN_FD_FAILED"
+ Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
RunsWhen = after
RunsOnFailure = yes
}
RunScript {
- Command = "/bin/touch /tmp/RUN_FD_FAILED"
+ Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
RunsWhen = after
RunsOnFailure = yes
}
rm -f bin/bacula-dir.conf
rm -f tmp/RUN*log
+rm -f tmp/RUN_FD_FAILED
+
+touch tmp/log1.out
/bin/cp -f scripts/bacula-dir.conf.testrunscript bin/bacula-dir.conf
echo "${cwd}/build/po" >/tmp/file-list
b=$?
grep 'dir: AfterJob: run command "/bin/echo RunAfterFailedJob"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
c=$?
-grep 'touching' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+#grep 'touching' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+test -f tmp/RUN_FD_FAILED
d=$?
grep '*** Backup Error ***' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
e=$?