Upgrade and rollback
Upgrading only replaces the image. Data directory, port and secrets are reused from .env;
database migrations run automatically on container start — no manual SQL.
# 1) Extract the new package into a NEW directory (never overwrite the old one)cd /opttar -xzf pacasys-community-<version>-amd64.tar.gz -C /opt/pacasys-<version>
# 2) Run from the extracted directory: backup → load image → recreate → rollback on failurecd /opt/pacasys-<version>sudo ./upgrade.shVerify
Section titled “Verify”docker ps --format '{{.Names}}\t{{.Image}}\t{{.Status}}' | grep pacasyscurl -fsS http://127.0.0.1:8080/healthz && echo OKsudo ./doctor.shA blank page in the browser after an upgrade is usually a stale frontend chunk — hard-reload (Ctrl+Shift+R).
Rollback manually
Section titled “Rollback manually”sudo sed -i 's|^PACASYS_IMAGE=.*|PACASYS_IMAGE=pacasys:<old-version>|' /opt/pacasys/.envcd /opt/pacasys && sudo ./install.sh --skip-loadThe previous image is still on the host until you prune it, so rollback is always possible.
Pre-upgrade checklist
Section titled “Pre-upgrade checklist”- A usable backup exists (
backup.shorpg_dump) andsecretsis stored off-box -
sha256sum -c SHA256SUMSpasses for the new package - Current version recorded (
cat /opt/pacasys/VERSION) - Off-peak window, users notified