Skip to content
Snippets Groups Projects
Commit 846213cf authored by intrigeri's avatar intrigeri
Browse files

Fixed reportspace option (Trac#10)

parent a906ba01
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment