mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-24 22:20:28 +01:00
Print command output to logs
This commit is contained in:
parent
385d69241c
commit
08ae3c73c8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user