]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/bacula-ctl-dir.in
Tweak bacula-ctl scripts for valgrind
[bacula/bacula] / bacula / scripts / bacula-ctl-dir.in
index 65cb8883e9406d1bdeaf17c96e37b044aca57fcf..0389584d624d28306c223f5569b2cf17752230d8 100644 (file)
@@ -208,7 +208,7 @@ case "$1" in
            OPTIONS="${OPTIONS} -g ${DIR_GROUP}"
         fi
 
-        if [ "x${VALGRIND}" = "x1" ]; then
+        if [ "x${VALGRIND_DIR}" = "x1" ]; then
            valgrind --leak-check=full ${BACDIRBIN}/bacula-dir $2 $3 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
         else
            ${BACDIRBIN}/bacula-dir $2 $3 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf