Commit graph

10 commits

Author SHA1 Message Date
github-actions[bot]
846cfc3973 chore: sync installers from triton v1.0.0-rc.3 2026-05-21 07:23:44 +00:00
amir-climy
5cb8ce2f63 feat(install): macOS + Windows support
install.sh / uninstall.sh (Linux + macOS):
- Detect OS with uname -s; root check is Linux-only (Docker/Podman Desktop
  on macOS runs rootless, no sudo needed).
- Arch detection adds arm64 case for Apple Silicon (uname -m returns "arm64"
  on macOS, "aarch64" on Linux).
- sed_inplace() wrapper handles BSD sed on macOS (requires empty -i suffix).
- Fix --image flag to append TRITON_MANAGE_IMAGE rather than sed-replace a
  line that is commented out in env.template.
- uninstall: re-apply --purge-data fixes (rm installer dir, drop interactive
  prompt, use $RUNTIME for raw cleanup instead of hardcoded podman).

install.ps1 / uninstall.ps1 (Windows):
- Equivalent logic for Docker Desktop / Podman Desktop on Windows.
- Arch via RuntimeInformation.OSArchitecture (X64 → amd64, Arm64 → arm64).
- Secrets via RandomNumberGenerator (no openssl dependency).
- Parameters: -GatewayHostname, -ManageHostIP, -Image, -NoTls / -PurgeData.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 15:07:13 +08:00
github-actions[bot]
c1158e9938 chore: sync installers from triton v1.0.0-rc.2 2026-05-21 06:58:26 +00:00
amir-climy
a8dcbe9b31 fix(uninstall): delete installer directory on --purge-data
--purge-data now removes /opt/triton-manage-server entirely (volumes,
.env, and installer files). Without --purge-data the directory is kept
so secrets in .env survive a reinstall.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 09:36:24 +08:00
amir-climy
1c559e483b fix(uninstall): remove interactive confirmation that breaks curl-pipe installs
--purge-data is already an explicit opt-in; the read prompt causes
'error: aborted' when stdin has no TTY (curl | sudo bash).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 09:15:58 +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
d67086ccd8 fix(uninstall): remove interactive confirmation for --purge-data
The read prompt reads EOF when invoked via curl pipe, causing an
immediate abort. The --purge-data flag is explicit enough to serve
as confirmation — no secondary prompt needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 19:54:40 +08:00
amir-climy
8ed781a6c1 fix(uninstall): remove cached container image on uninstall
Without image removal, reinstalling reuses the old cached image even if
a newer one is available. Read TRITON_MANAGE_IMAGE from .env (falling back
to :latest) and rmi it after stopping containers.

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