X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fscripts%2Fdevel_bacula.in;h=4357394a46c4e03eaf034b8ec20b9d13bc8a6d0a;hb=10ee9d810f331ba9aa335d31d3d6e2573615c6cd;hp=bddb7705eeb7525130651ce6ba3776d062fb4064;hpb=ff8da369e3ee04965206b69744d9b2bc4ada5835;p=bacula%2Fbacula diff --git a/bacula/scripts/devel_bacula.in b/bacula/scripts/devel_bacula.in index bddb7705ee..4357394a46 100755 --- a/bacula/scripts/devel_bacula.in +++ b/bacula/scripts/devel_bacula.in @@ -9,7 +9,7 @@ # This is pretty much watered down version of the RedHat script # that works on Solaris as well as Linux, but it won't work everywhere. # -# description: It comes by night and sucks the vital essence from your computers. +# description: The Leading Open Source Backup Solution. # PSCMD="@PSCMD@" @@ -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 } ;;