Send warning email
This commit is contained in:
parent
113f454f75
commit
e2223cde9b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue