mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-01 16:54:35 +01:00
10 lines
296 B
Bash
10 lines
296 B
Bash
|
#!/bin/sh
|
||
|
echo "Checking journalctl for error messages..."
|
||
|
journalctl_errors="$(journalctl --since '1 day ago' --no-pager | grep -i 'error')"
|
||
|
if [ ! -z "$journalctl_errors" ]
|
||
|
then
|
||
|
echo "Some errors where found: $journalctl_errors"
|
||
|
exit 1
|
||
|
fi
|
||
|
echo "All docker containers are healthy."
|
||
|
exit 0
|