Readme.md aktualisiert

This commit is contained in:
Manuel Kamper 2023-12-28 18:31:17 +00:00
parent cc635068d0
commit 842ce45fc4
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ df -h / | awk '$NF > "{{threshold}}%" {print $1}' | while read disk; do
# Check if the disk usage is above the threshold
if [ "$disk" -gt "$threshold" ]; then
# Send an email notification
echo "Disk $disk is full!" | mail -s "Disk Full Alert" "$email"
echo "Disk $disk is full!" | mail -s "Disk Full Alert" $email
fi
done
```