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
|
||||
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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user