646929ddff
Centralize chmod and /usr/local/bin symlinks; install, upgrade, update, and every nx invocation refresh the global nx command. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
581 B
Bash
Executable File
16 lines
581 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Nexus 6.0 — 一键更新(拉代码 + 重建镜像 + 重启)
|
|
#
|
|
# 已在 /opt/nexus:
|
|
# bash deploy/update.sh
|
|
# bash deploy/update.sh --no-cache # 强制无缓存重建(entrypoint/Dockerfile 变更后)
|
|
#
|
|
# 远程一条命令:
|
|
# curl -fsSL "http://66.154.115.8:3000/admin/Nexus/raw/branch/main/deploy/update.sh" | bash
|
|
#
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/.." && pwd)"
|
|
|
|
NEXUS_ROOT="$ROOT" bash "$ROOT/deploy/install-nx-cli.sh" 2>/dev/null || true
|
|
exec bash "$ROOT/deploy/nexus-1panel.sh" upgrade "$@"
|