Print command output to logs

This commit is contained in:
MaxJa4 2023-08-22 21:57:41 +02:00
parent 385d69241c
commit 08ae3c73c8

View File

@ -15,6 +15,7 @@ sleep 5
expect_running_containers "3" expect_running_containers "3"
echo "$logs"
if echo "$logs" | grep -q "ERROR"; then if echo "$logs" | grep -q "ERROR"; then
fail "Backup failed, errors reported: $dvb_logs" fail "Backup failed, errors reported: $dvb_logs"
else else
@ -29,6 +30,7 @@ sleep 5
logs=$(docker compose exec -T backup backup) logs=$(docker compose exec -T backup backup)
echo "$logs"
if echo "$logs" | grep -q "Refusing to do so, please check your configuration"; then if echo "$logs" | grep -q "Refusing to do so, please check your configuration"; then
pass "Remote backups have not been deleted." pass "Remote backups have not been deleted."
else else