triton-install/manage-server
amir-climy bacccd9550 feat: add --upgrade one-liner and improve upgrade.sh
get.sh --upgrade:
- Re-downloads installer files (compose.yaml, upgrade.sh, etc.) so the
  on-disk scripts are always current before upgrading
- Then execs upgrade.sh with any passthrough flags (e.g. --image TAG)

upgrade.sh improvements:
- Platform-aware backup dir (Linux: /var/backups/triton,
  macOS: ~/Library/Application Support/triton/backups)
- Reads POSTGRES_USER/POSTGRES_DB from .env instead of hardcoding
- Uses detected runtime (podman/docker) for pg_dump exec
- Explicit messaging that DB migrations run automatically on startup
- Health check success confirms migrations applied
- Prints rollback command pointing at the backup file

Usage:
  curl -fsSL .../get.sh | sudo bash -s -- --upgrade
  curl -fsSL .../get.sh | sudo bash -s -- --upgrade --image ...:1.2.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 19:19:57 +08:00
..
compose.yaml chore: sync installers from triton v1.0.0-rc.2 2026-05-17 07:43:44 +00:00
env.template chore: sync installers from triton v1.0.0-rc.2 2026-05-17 08:33:44 +00:00
install.sh chore: sync installers from triton v1.0.0-rc.2 2026-05-17 08:33:44 +00:00
uninstall.sh feat: initial installer scripts for manage server and license server 2026-05-17 08:57:58 +02:00
upgrade.sh feat: add --upgrade one-liner and improve upgrade.sh 2026-05-19 19:19:57 +08:00