Before you upgrade
- Upgrading from 1.2.4 or earlier is a one-time manual step. The old
compose file has no updater service, so the upgrade must also replace
docker-compose.yml and rst-update.sh and add three lines to .env.
Installing only the app image from Settings › Online update with the old
rst-update.sh works, but Install now will not appear.
- With internet access: re-run
install.sh. It keeps .env and data/,
replaces the compose file and rst-update.sh, adds UPDATER_TOKEN
(random, never printed), SIGNALDESK_DIR and UPDATER_IMAGE_TAG, and
starts the updater.
- Offline: follow docs/operations.md, section 4A, "1.2.4 and earlier →
1.2.5".
- If the install directory is not
/opt/signaldesk, SIGNALDESK_DIR must
be its real absolute path. The updater mounts the directory at the same
path.
- No database migration.
- Going back to 1.2.4: set
APP_IMAGE_TAG=1.2.4 in .env and run
docker compose up -d --no-deps app. The updater keeps running and does
not need to change.
New
- One-click install: when an update is staged, Settings › Online update
shows Install now. After you confirm, the page shows the progress
(verifying, installing, restarting, done). If the new version fails its
health check and has not migrated the database, the previous version is
restored automatically. Each install is recorded in the audit log as
"Install system update". Only operations admins can install.
- The install is run by a new
updater container. It is the only container
with access to the Docker socket. It publishes no port, is reachable only
from the app over an internal network, requires a shared token, and can
only install the version that is already staged. Before loading anything,
it copies the staged files to a root-only directory and checks again:
the signature, the archive checksum, and the image checksum. It refuses
downgrades and reinstalls of the same version.
Changes
rst-update.sh v3:
- It now keeps
docker-compose.override.yml. Earlier versions dropped it,
which could undo local changes such as binding the app port to
127.0.0.1.
- Install records and the lock move to
./.rst-update/ (root only). The
script no longer writes anything in the app-writable data/release/.
- It checks free disk space before copying images, and checks health again
after a rollback.
- New
--recover finishes an install that was interrupted (host or Docker
restart). The migration baseline used by --rollback is only updated
when an install succeeds.
- The daily backup is reliably paused during an install. In 1.2.4 and earlier
the check could randomly miss the pg-backup service.
Download and install
| File |
Description |
SignalDesk-1.2.5.tar.gz |
Offline bundle (app image and deployment files; Community Edition without a license, Enterprise Edition once one is imported) |
SignalDesk-1.2.5.tar.gz.sha256 |
SHA-256 checksum |
install.sh |
One-line installer |
curl -fsSL https://github.com/reallysec/signaldesk/releases/download/v1.2.5/install.sh | sudo bash -s -- --version 1.2.5
中文说明
升级须知
- 从 1.2.4 及以前升级,这一次要手动操作。 旧的 compose 文件里没有
updater 服务,所以这次升级要同时替换 docker-compose.yml 和 rst-update.sh,并在 .env 里加三行。如果只在「设置 › 在线更新」暂存后用旧的 rst-update.sh 装,app 能升上去,但不会出现「立即安装」按钮。
- 有外网:重跑
install.sh。它保留 .env 和 data/,替换 compose 文件和 rst-update.sh,补上 UPDATER_TOKEN(随机生成,不打印)、SIGNALDESK_DIR、UPDATER_IMAGE_TAG,并启动 updater。
- 离线:按 docs/operations.md「四、升级 A」中「1.2.4 及以前 → 1.2.5」的步骤操作。
- 安装目录不是
/opt/signaldesk 时,SIGNALDESK_DIR 必须填它的真实绝对路径。updater 按同一路径挂载安装目录。
- 无数据库迁移。
- 回退到 1.2.4:
.env 设 APP_IMAGE_TAG=1.2.4 后执行 docker compose up -d --no-deps app。updater 照常运行,不用动。
新功能
- 一键安装:更新暂存后,「设置 › 在线更新」出现「立即安装」。确认后页面显示进度(验证中、安装中、重启中、已完成)。新版本健康检查不过、且没有执行数据库迁移时,自动回到上一个版本。每次安装记入审计日志,类型为「安装系统更新」。只有运维管理员能安装。
- 安装由新增的
updater 容器执行。只有它能访问 Docker socket。它不发布端口,只在内部网络上供 app 调用,需要共享密钥,并且只能安装已经暂存的那个版本。加载镜像前,它先把暂存文件拷到只有 root 能访问的目录,再复核一遍:签名、交付包校验和、镜像校验和。它拒绝降级,也拒绝重装同一版本。
行为变化
rst-update.sh 升到 v3:
- 现在会保留
docker-compose.override.yml。此前的版本会丢掉它,本地改动(例如把 app 端口绑在 127.0.0.1)可能因此失效。
- 安装记录和锁挪到
./.rst-update/(只有 root 能访问)。脚本不再在 app 可写的 data/release/ 里写任何文件。
- 拷贝镜像前先检查磁盘余量;回滚后再做一次健康检查。
- 新增
--recover,用来收尾被中断的安装(宿主或 Docker 重启)。--rollback 用的迁移基线只在安装成功时更新。
- 安装期间每日备份一定会暂停。1.2.4 及以前的检查可能随机漏掉
pg-backup 服务。
下载与安装
| 文件 |
说明 |
SignalDesk-1.2.5.tar.gz |
离线一体包(应用镜像 + 部署文件;不导入许可为社区版,导入许可为企业版) |
SignalDesk-1.2.5.tar.gz.sha256 |
SHA-256 校验文件 |
install.sh |
一行安装脚本 |
curl -fsSL https://github.com/reallysec/signaldesk/releases/download/v1.2.5/install.sh | sudo bash -s -- --version 1.2.5