From 8848c83f11c02655ccb1ec8ac5f7fad0b406df29 Mon Sep 17 00:00:00 2001 From: Ale Paredes <1709578+ale7714@users.noreply.github.com> Date: Tue, 28 May 2024 11:20:43 -0400 Subject: [PATCH] [APP-5068] fix agent install issue with service file (#24) --- subsystems/viamagent/viamagent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsystems/viamagent/viamagent.go b/subsystems/viamagent/viamagent.go index 17d87a3..9a16c19 100644 --- a/subsystems/viamagent/viamagent.go +++ b/subsystems/viamagent/viamagent.go @@ -227,8 +227,8 @@ func getServiceFilePath(logger *zap.SugaredLogger) (string, bool, error) { if err == nil { return serviceFilePath, true, nil } - if errw.Is(err, fs.ErrNotExist) { - // unknown error + if !errw.Is(err, fs.ErrNotExist) { + // unknown error when checking old service file path return "", false, err }