Browse Source

Send warning email

Bob Mottram 10 years ago
parent
commit
e2223cde9b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      beaglebone.txt

+ 1
- 1
beaglebone.txt View File

@@ -7172,7 +7172,7 @@ if grep -q "Error" "$TEMPFILE"; then
7172 7172
     mysql -u root --password=$MYSQL_ROOT_PASSWORD $DATABASE -o < /var/backups/$DATABASE_daily.sql
7173 7173
 
7174 7174
     # Send a warning email
7175
-    echo "$DATABASE database corruption could not be repaired. Restored from backup." $EMAIL
7175
+    echo "$DATABASE database corruption could not be repaired. Restored from backup." | mail -s "Freedombone database maintenance" $EMAIL
7176 7176
     rm -f $TEMPFILE
7177 7177
 
7178 7178
     exit 1