]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate possible false error message
authorKern Sibbald <kern@sibbald.com>
Sun, 11 Oct 2009 09:30:46 +0000 (11:30 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 11 Oct 2009 09:30:46 +0000 (11:30 +0200)
regress/scripts/cleanup

index bccd1ea9cd2c470982a0a58ef18cb5bc4e4cc822..c262dc8aa92e52c2a4f89fb8ba2ac0a19a46c0b0 100755 (executable)
@@ -18,7 +18,9 @@ find . -name "gigaslam.gif" -exec rm -f {} \;
 
 # bin directory does not always exist
 if [ -d ${bin} ] ; then
-  ${bin}/bacula stop 2>&1 >/dev/null
+  if [ -f ${bin}/bacula ] ; then
+     ${bin}/bacula stop 2>&1 >/dev/null
+  fi
   cd ${scripts}
   ./drop_bacula_tables      >/dev/null 2>&1
   ./make_bacula_tables      >/dev/null 2>&1