alby-hub/scripts
molty21 e963d6a2bf
feat: make installation scripts agent-friendly with CLI args (#2144)
* feat: make installation scripts agent-friendly with CLI args

Add command-line argument support to install.sh and update.sh for both
x86_64 and aarch64 architectures:

- -d, --install-dir DIR    Set installation directory
- -s, --systemd            Auto-setup systemd service (install only)
- --no-systemd             Skip systemd setup (install only)
- -y, --yes                Non-interactive mode (auto-confirm prompts)
- -h, --help               Show usage information

This allows agents and automation tools to run the scripts without
interactive prompts, making them suitable for CI/CD pipelines and
automated deployments.

* fix: add argument validation for --install-dir flag

Add validation to ensure -d/--install-dir is provided with a valid value:
- Checks that argument exists (not empty)
- Checks that argument doesn't start with '-' (not another flag)
- Exits with error message if validation fails

Fixes CodeRabbit review feedback on PR #2144.

* feat: add --skip-verify flag to skip verification step

Add --skip-verify flag to install and update scripts:
- linux-x86_64/install.sh
- linux-x86_64/update.sh
- linux-aarch64/install.sh
- linux-aarch64/update.sh

When --skip-verify is passed, the scripts skip downloading and
calling verify.sh entirely.

Usage: ./install.sh --skip-verify

* fix: ensure install dir does not contain whitespace

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Apply suggestion from @rolznz

* Apply suggestion from @coderabbitai[bot]

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Apply suggestion from @rolznz

* Update scripts/linux-aarch64/install.sh

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: molty21 <moltbot21@agentmail.to>
Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-03-16 19:24:43 +07:00
..
caddy-subpath Feat: allow hosting alby hub on subpath (#1439) 2025-06-26 16:23:40 +05:30
keys chore: add new gpg key for rolznz 2025-01-07 23:09:49 +07:00
linux-aarch64 feat: make installation scripts agent-friendly with CLI args (#2144) 2026-03-16 19:24:43 +07:00
linux-x86_64 feat: make installation scripts agent-friendly with CLI args (#2144) 2026-03-16 19:24:43 +07:00
pi-aarch64 Making shell scripts POSIX compliant (#2015) 2026-02-26 12:19:30 +07:00
pi-arm Making shell scripts POSIX compliant (#2015) 2026-02-26 12:19:30 +07:00
verify.sh Making shell scripts POSIX compliant (#2015) 2026-02-26 12:19:30 +07:00