Send warning email

This commit is contained in:
Bob Mottram 2014-08-09 12:11:13 +01:00
parent 113f454f75
commit e2223cde9b
1 changed files with 1 additions and 1 deletions

View File

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