From 5a2bf48ec62df6eb8e18827e61bcb9f63b1159b6 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Sun, 22 Aug 2021 22:44:36 +0200 Subject: [PATCH] make sure backup also runs when socket isn't present --- cmd/backup/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/backup/main.go b/cmd/backup/main.go index 64db708..5cdcb94 100644 --- a/cmd/backup/main.go +++ b/cmd/backup/main.go @@ -153,8 +153,9 @@ func (s *script) init() error { // sure containers are being restarted if required. func (s *script) stopContainersAndRun(thunk func() error) error { if s.cli == nil { - return nil + return thunk() } + allContainers, err := s.cli.ContainerList(s.ctx, types.ContainerListOptions{ Quiet: true, })