From: intrigeri Date: Fri, 12 Oct 2007 17:42:46 +0000 (+0000) Subject: Fixed reportspace option (Trac#10) X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=af3ba54d834cb1b0a08b0389a46a774e0a241608;p=matthijs%2Fupstream%2Fbackupninja.git Fixed reportspace option (Trac#10) git-svn-id: http://code.autistici.org/svn/backupninja/trunk@480 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ChangeLog b/ChangeLog index 62df6f8..ea8d6c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ version 0.9.5 -- unreleased . Enhanced portability for other platforms . Fixed Trac#11 (quoting needed to prevent shell expansion, broke the toint function sometimes) + . Fixed reportspace option (Trac#10) handler changes ldap: . Fixed shell command quoting issues, missing 'then' clauses, cleaned up diff --git a/src/backupninja.in b/src/backupninja.in index 0cd186a..34c0bd6 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -546,10 +546,9 @@ if [ $doit == 1 ]; then for i in $(ls "$configdirectory"); do backuploc=$(grep ^directory "$configdirectory"/"$i" | @AWK@ '{print $3}') if [ "$backuploc" != "$previous" ]; then - mountdev=$(mount | grep "$backuploc" | @AWK@ '{print $1}') - df -h "$mountdev" + df -h "$backuploc" previous="$backuploc" - fi + fi done fi } | mail -s "backupninja: $hostname $subject" $reportemail