make subject of mail more verbose

This commit is contained in:
2014-12-08 16:14:44 +01:00
parent fc204cf8b2
commit 9cc8e319c0
+2 -2
View File
@@ -56,7 +56,7 @@ for ((i = 0; i < ${#NAME[*]}; i++)); do
## TEST PING
pingtest $CURHOST
if [ "$STATUS" != 0 ]; then
mailsend "Ping error on $CURNAME" \
mailsend "Ping error on $CURHOST" \
"Ping was unsuccessful" \
"Check http://$CURHOST"
fi
@@ -66,7 +66,7 @@ for ((i = 0; i < ${#NAME[*]}; i++)); do
if [ "$STATUS" != 0 ]; then
diff -U 0 -Bb -I $CURIGN sites/"$CURHOST".orig "$CURHOST".html > "$CURHOST".diff
mailsend "Index error on $CURNAME" \
mailsend "Index error on $CURHOST" \
"Index on $CURHOST differs from original index: \n\n$(cat $CURHOST.diff)" \
"Update original index: ssh://$CURNAME"