Commit graph

7 commits

Author SHA1 Message Date
amir-climy
4f2408eeb3 chore: point at forgejo registry + new image name
Mirror the source-of-truth update from primatekuntech/triton@HEAD:
the Manage Server image now lives at
forgejo.primatekun.tech/primatekuntech/triton-manage-server (not the
legacy ghcr.io/primatekuntech/triton-manageserver). Updates the
distribution copy of compose.yaml, env.template, upgrade.sh plus the
example URLs in get.sh and README.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 12:41:05 +08:00
amir-climy
b2054a6dca chore: sync installers from triton main (2026-05-21)
- fix: image name triton-manage-server → triton-manageserver (matches CI)
- feat: --license-pubkey flag on install.sh
- fix: uninstall/upgrade use detected runtime (podman/docker) not hardcoded
- fix: upgrade pg_dump reads POSTGRES_USER/DB from .env
- feat: force pull image from registry on install and upgrade
- feat: SCRIPT_VERSION printed as first line on every run
- fix: --yes flag on uninstall --purge-data for non-interactive (curl|bash) use

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 23:02:13 +08:00
github-actions[bot]
4057cebb27 chore: sync installers from triton v1.0.0-rc.1 2026-05-20 15:01:09 +00:00
amir-climy
504242308c feat(upgrade): add --port flag to change web UI host port on upgrade
Allows changing the host port at upgrade time:

  curl ... | sudo bash -s -- --upgrade --port 9090

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 19:45:37 +08:00
amir-climy
f1cec6ac33 fix(scripts): handle BASH_SOURCE[0] unbound when piped via curl
BASH_SOURCE[0] is unset when a script runs via `curl | bash` (no source
file on disk). With `set -u` this triggers "unbound variable" and exits.
Fall back to $0 with ${BASH_SOURCE[0]:-$0} so piped execution works.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 19:38:47 +08:00
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
Amir Yahaya
92b0eeec90 feat: initial installer scripts for manage server and license server 2026-05-17 08:57:58 +02:00