#!/usr/bin/env bash # Install a complete checkout without fetching anything, using its bundled packages. 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" (cd "$ROOT/stage_itscreen" && sha256sum --check itscreen.sha256) exec bash "$ROOT/local_installer.sh" "$ROOT" --non-interactive --reset-state --only "$STAGES"