From 72f4e2995f0a9eadfbab9b9f398efbb95afdf654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Wed, 6 Sep 2023 12:09:47 -0400 Subject: [PATCH] incus-agent: Fix lxd-agent fallback logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- generators/incus-agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/incus-agent.go b/generators/incus-agent.go index 1b94da78..d6e7d6e2 100644 --- a/generators/incus-agent.go +++ b/generators/incus-agent.go @@ -55,7 +55,7 @@ rmdir "${PREFIX}/.mnt" chown -R root:root "${PREFIX}" # Legacy. -if [ -e "${PREFIX}/lxd-agent" ]; then +if [ ! -e "${PREFIX}/incus-agent" ] && [ -e "${PREFIX}/lxd-agent" ]; then ln -s lxd-agent "${PREFIX}"/incus-agent fi