X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fscripts%2Fdevel_bacula.in;h=4a68501db282d2e69e4b27ba7c3290ba46241006;hb=f51b602287b3dc2ed459c4e59376d973ec62c964;hp=bddb7705eeb7525130651ce6ba3776d062fb4064;hpb=ea1410daefd57afa9ebad31f3eb40ac17751ce04;p=bacula%2Fbacula diff --git a/bacula/scripts/devel_bacula.in b/bacula/scripts/devel_bacula.in index bddb7705ee..4a68501db2 100755 --- a/bacula/scripts/devel_bacula.in +++ b/bacula/scripts/devel_bacula.in @@ -230,8 +230,11 @@ case "$1" in OPTIONS="${OPTIONS} -g ${DIR_GROUP}" fi -# valgrind --leak-check=full ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/dird.conf - ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/dird.conf + if [ "${VALGRIND}" != '' ]; then + valgrind --leak-check=full ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/dird.conf + else + ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/dird.conf + fi } ;;