Files
Nexus/docs/changelog/2026-06-06-nexus-1panel-local-root-unbound-fix.md
T
Nexus Deploy 1f5daebeed fix(deploy): nx update 在 set -u 下 local root 同行展开报错
拆分 nexus_publish_port/set_install_complete/sync_env_prod_to_volume 的 local 声明,
避免 env_file="$root/..." 在 root 赋值前展开导致 unbound variable。
2026-06-06 20:38:11 +08:00

651 B

2026-06-06 — nx update root: unbound variable 修复

摘要

修复 deploy/nexus-1panel.shset -usync_env_prod_to_volume 等函数因同行 local 引用 $root 导致升级中断。

动机

生产 sudo nx update 在写入 1panel-hosts.json 后报错:line 286: root: unbound variable,后续镜像构建/健康检查未执行。

涉及文件

  • deploy/nexus-1panel.shnexus_publish_portset_install_completesync_env_prod_to_volume 拆分 local 声明

迁移 / 重启

  • 无;拉代码后重新 nx update 即可

验证

bash -n deploy/nexus-1panel.sh
sudo nx update