10 lines
610 B
Bash
Executable File
10 lines
610 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Legacy entrypoint: stages use on-demand downloads from our Git.
|
|
set -Eeuo pipefail
|
|
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
[[ ${EUID} -eq 0 ]] || { echo 'Run with sudo bash install_offline.sh [comma-separated-stages]' >&2; exit 1; }
|
|
[[ $# -le 1 ]] || { echo 'Usage: install_offline.sh [comma-separated-stages]' >&2; exit 1; }
|
|
STAGES=${1:-stage_env,stage_wifi,stage_mqtt,stage_ui,stage_avahi,stage_cockpit,stage_itscreen,stage_reverse_tunnels}
|
|
source "$ROOT/offline/require-local.sh"
|
|
exec bash "$ROOT/local_installer.sh" "$ROOT" --non-interactive --reset-state --only "$STAGES"
|