summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspeichersau.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/speichersau.sh b/speichersau.sh
index e9e9015..9d13888 100755
--- a/speichersau.sh
+++ b/speichersau.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+SENDMAIL="/usr/sbin/sendmail"
+
# /home darf nicht per nfs gemountet sein
homeFS=$(mount | awk '{ if (/[[:space:]]\/home[[:space:]]/) print $5; }')
if [ "$homeFS" == "nfs" ]; then
@@ -15,7 +17,7 @@ if [ $gefuellt -gt 95 ]; then
fi
cd /home/
-cat <<EOF | sendmail -t
+cat <<EOF | ${SENDMAIL} -t
To: spline@lists.spline.de
From: Speichersau <speichersau@spline.de>
Subject: Speichersau $(date +%U). Kalenderwoche