summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2007-03-26 20:31:26 -0500
committerJeffrey C. Ollie <jeff@ocjtech.us>2008-02-13 14:43:19 -0600
commitbbbaf12fc7817fbfb766d237bf67fa527649e269 (patch)
tree27316523b67430329125f589fef95e42630fb25a
parentb73f299e731fbddae095c0b5eff04717b6dce1af (diff)
downloadrancid-bbbaf12fc7817fbfb766d237bf67fa527649e269.zip
rancid-bbbaf12fc7817fbfb766d237bf67fa527649e269.tar.gz
rancid-bbbaf12fc7817fbfb766d237bf67fa527649e269.tar.xz
Use absolute path to sendmail.sendmailpath
-rw-r--r--bin/control_rancid.in10
-rw-r--r--bin/rancid-run.in2
2 files changed, 6 insertions, 6 deletions
diff --git a/bin/control_rancid.in b/bin/control_rancid.in
index 13b15f8..e8811f7 100644
--- a/bin/control_rancid.in
+++ b/bin/control_rancid.in
@@ -147,7 +147,7 @@ then
echo ""
echo "$DIR does not exist."
echo "Run bin/rancid-cvs $GROUP to make all of the needed directories."
- ) | sendmail -t
+ ) | /usr/sbin/sendmail -t
exit 1
fi
cd $DIR
@@ -189,7 +189,7 @@ then
echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'
echo ""
echo "$DIR/router.db does not exist."
- ) | sendmail -t
+ ) | /usr/sbin/sendmail -t
exit 1;
fi
@@ -278,7 +278,7 @@ then
echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'
echo ""
cat routers.mail
- ) | sendmail -t
+ ) | /usr/sbin/sendmail -t
fi
rm -f routers.mail
@@ -473,7 +473,7 @@ then
echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'
echo ""
cat $TMP.diff
- ) | sendmail -t
+ ) | /usr/sbin/sendmail -t
fi
# If any machines have not been reached within the last $OLDTIME
@@ -496,7 +496,7 @@ then
echo "more than $OLDTIME hours."
cat $DIR/routers.failed
- ) | sendmail -t
+ ) | /usr/sbin/sendmail -t
fi
# Cleanup
diff --git a/bin/rancid-run.in b/bin/rancid-run.in
index ae24912..4a55b62 100644
--- a/bin/rancid-run.in
+++ b/bin/rancid-run.in
@@ -156,7 +156,7 @@ do
rancid $GROUP hung on `hostname`? Old lockfile still exists:
`ls -l $LOCKFILE`
END
- ) | sendmail -t
+ ) | /usr/sbin/sendmail -t
fi
rm -f $TMPDIR/.$GROUP.old
else