From a30afb1026d77faf258e5822b507cff0f211ccef Mon Sep 17 00:00:00 2001 From: Veillax <126523099+Veillax@users.noreply.github.com> Date: Mon, 26 Oct 2026 14:01:46 -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 4ef0edb..8ca69f4 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" install -m 0644 "$HERE/$NAME.service" "$UNIT" if [ ! -f "$ENVFILE" ]; then install -m 0600 "$HERE/.env.example" "$ENVFILE"