Files
Nexus/docs/changelog/2026-06-05-nx-symlink-fix.md
T
Nexus Deploy 536d520744
Nexus CI/CD / test (push) Waiting to run
Nexus CI/CD / deploy (push) Blocked by required conditions
Nexus Pre-commit Checks / quick-check (push) Waiting to run
fix(nx): resolve deploy dir when invoked via /usr/local/bin symlink
readlink -f fixes sourcing nexus-1panel.sh; register nexus-1panel global cmd.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 02:49:34 +08:00

532 B
Raw Blame History

2026-06-05 — nx 符号链接路径修复

问题

/usr/local/bin/nx/opt/nexus/deploy/nx 时,dirname $BASH_SOURCE 解析为 /usr/local/binsource nexus-1panel.sh 失败。

修复

  • deploy/nx:使用 readlink -f 解析真实路径
  • install-nexus-fresh.sh:注册 nexus-1paneldeploy/nexus-1panel.sh

服务器立即修复

cd /opt/nexus && git pull
ln -sf /opt/nexus/deploy/nx /usr/local/bin/nx
ln -sf /opt/nexus/deploy/nexus-1panel.sh /usr/local/bin/nexus-1panel
nx god