make subject of mail more verbose
This commit is contained in:
+2
-2
@@ -56,7 +56,7 @@ for ((i = 0; i < ${#NAME[*]}; i++)); do
|
|||||||
## TEST PING
|
## TEST PING
|
||||||
pingtest $CURHOST
|
pingtest $CURHOST
|
||||||
if [ "$STATUS" != 0 ]; then
|
if [ "$STATUS" != 0 ]; then
|
||||||
mailsend "Ping error on $CURNAME" \
|
mailsend "Ping error on $CURHOST" \
|
||||||
"Ping was unsuccessful" \
|
"Ping was unsuccessful" \
|
||||||
"Check http://$CURHOST"
|
"Check http://$CURHOST"
|
||||||
fi
|
fi
|
||||||
@@ -66,7 +66,7 @@ for ((i = 0; i < ${#NAME[*]}; i++)); do
|
|||||||
if [ "$STATUS" != 0 ]; then
|
if [ "$STATUS" != 0 ]; then
|
||||||
diff -U 0 -Bb -I $CURIGN sites/"$CURHOST".orig "$CURHOST".html > "$CURHOST".diff
|
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)" \
|
"Index on $CURHOST differs from original index: \n\n$(cat $CURHOST.diff)" \
|
||||||
"Update original index: ssh://$CURNAME"
|
"Update original index: ssh://$CURNAME"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user