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>2007-03-26 20:31:26 -0500
commit8ba5c18547d099c73b0faa669bd6f2313b7eb4b9 (patch)
tree67ffa2ca53968a9e24e2109a8e7cfcfe324531b5
parentac54243f382e817c08c1f895ccfdc05dcacdb044 (diff)
downloadrancid-8ba5c18547d099c73b0faa669bd6f2313b7eb4b9.tar.gz
rancid-8ba5c18547d099c73b0faa669bd6f2313b7eb4b9.tar.xz
rancid-8ba5c18547d099c73b0faa669bd6f2313b7eb4b9.zip
Use absolute path to sendmail.rancid-2.3.2a7-sendmailpath.patch
-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 388bbf4..52a4b9b 100644
--- a/bin/control_rancid.in
+++ b/bin/control_rancid.in
@@ -127,7 +127,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
@@ -169,7 +169,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
@@ -258,7 +258,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
@@ -453,7 +453,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
@@ -476,7 +476,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 42e387a..b8d1fdd 100644
--- a/bin/rancid-run.in
+++ b/bin/rancid-run.in
@@ -136,7 +136,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