]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/runscript.c
Attempt to fix bat seg faults
[bacula/bacula] / bacula / src / lib / runscript.c
index c2f61aa8c9f16eda770622e047a456c392c63215..1122f30dc14045af1ba247635cd4a76880ee2610 100644 (file)
@@ -157,7 +157,8 @@ int run_scripts(JCR *jcr, alist *runscripts, const char *label)
       }
 
       if ((script->when & SCRIPT_After) && (when & SCRIPT_After)) {
-         if ((script->on_success && (jcr->JobStatus == JS_Terminated))
+         if ((script->on_success &&
+              (jcr->JobStatus == JS_Terminated || jcr->JobStatus == JS_Warnings))
              || (script->on_failure && job_canceled(jcr))
             )
          {