Fixed reportspace option (Trac#10)
authorintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Fri, 12 Oct 2007 17:42:46 +0000 (17:42 +0000)
committerintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Fri, 12 Oct 2007 17:42:46 +0000 (17:42 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@480 758a04ac-41e6-0310-8a23-8373a73cc35d

ChangeLog
src/backupninja.in

index 62df6f862fcf6578b5c753c8e6d0c62a4ebbea1f..ea8d6c47f9c5fb09ccf386f69d5180e0730ca0c7 100644 (file)
--- 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
index 0cd186ac6213823115789363374205ad409254ea..34c0bd618e265fff7211d497609512985729b8e1 100755 (executable)
@@ -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