From 189304938ec7884afc91b21c1e08ee94884152ab Mon Sep 17 00:00:00 2001 From: Veillax <126523099+Veillax@users.noreply.github.com> Date: Mon, 26 Oct 2026 14:01:41 -0600 Subject: [PATCH] Fix the staged install link used by DESTDIR Co-Authored-By: Claude Sonnet 5.5 --- deploy/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/install.sh b/deploy/install.sh index 73a08ae..07e28b3 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -51,7 +51,9 @@ mkdir -p "$LIB" install -m 0755 "$HERE/$NAME" "$LIB/$NAME.new" mv -f "$LIB/$NAME.new" "$LIB/$NAME" # atomic, so upgrading a running service is safe rm -f "$BIN" -ln -s "/usr/local/lib/$NAME/$NAME" "$BIN" +LINK=/usr/local/lib/$NAME/$NAME +[ -z "${DESTDIR:-}" ] || LINK=$LIB/$NAME # staging: point inside the staging folder +ln -s "$LINK" "$BIN" if [ -f "$HERE/traefik" ]; then install -m 0755 "$HERE/traefik" "$ROOT/usr/local/lib/$NAME/traefik.new" mv -f "$ROOT/usr/local/lib/$NAME/traefik.new" "$ROOT/usr/local/lib/$NAME/traefik"