]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/bacula-ctl-dir.in
ebl fix the last patch to do only ignorecase on win32
[bacula/bacula] / bacula / scripts / bacula-ctl-dir.in
index 37d22aff86c52e189545d9528fa53b0ca7ea8bd4..fdebdfbe216d7a901293de90bc38a34a52db2e2a 100644 (file)
@@ -208,7 +208,11 @@ case "$1" in
            OPTIONS="${OPTIONS} -g ${DIR_GROUP}"
         fi
 
-        ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
+        if [ "${VALGRIND}" != '' ]; then
+           valgrind --leak-check=full ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
+        else
+           ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
+        fi
       }
       ;;