From e3fc9d6189c0ca2cb6da16c5755c3076d581bbfb Mon Sep 17 00:00:00 2001 From: Sebastiaan Mannem Date: Tue, 10 May 2022 21:19:07 +0200 Subject: [PATCH] Dont require to remove old waldir --- internal/postgresql/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/postgresql/utils.go b/internal/postgresql/utils.go index de9adde7c..7d28a8b22 100644 --- a/internal/postgresql/utils.go +++ b/internal/postgresql/utils.go @@ -629,7 +629,8 @@ func moveDirRecursive(src string, dest string) error { // Remove this folder, which is now supposedly empty if err := syscall.Rmdir(src); err != nil { log.Errorf("could not remove folder %s: %e", src, err) - return err + // If this is a mountpoint or you don't have enough permissions, you might nog be able to. But that is fine. + //return err } } else { return moveFile(src, dest)