From 311ddecd264b195e8b54f9927affce531087d744 Mon Sep 17 00:00:00 2001 From: go-compile <97609133+go-compile@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:10:55 +0000 Subject: [PATCH] fix: change dir if \!CurrentDirAvaliable() --- internal/home/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/home/home.go b/internal/home/home.go index 925c2d02..cea85f70 100644 --- a/internal/home/home.go +++ b/internal/home/home.go @@ -769,7 +769,7 @@ func initWorkingDir(opts options) (err error) { if opts.workDir != "" { // If there is a custom config file, use it's directory as our working dir Context.workDir = opts.workDir - } else if pwdAvaliable { + } else if !pwdAvaliable { // If running as a service and from /usr/bin/ use /var/lib for working dir instead of // /usr/bin/data Context.workDir = "/var/lib/AdGuardHome"