Skip to content

Commit

Permalink
incus-agent: Fix lxd-agent fallback logic
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Sep 6, 2023
1 parent 6229dfb commit 72f4e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/incus-agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72f4e29

Please sign in to comment.