Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
1.3 KiB
Bash
Executable File
38 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Start container 6201 (firefly-ali-1) on r630-02. Optional; run when Firefly Ali node is needed.
|
|
# Usage: bash scripts/maintenance/start-firefly-6201.sh [--dry-run] [--host HOST]
|
|
# Requires: SSH key access to the Proxmox host (r630-02).
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
source "${PROJECT_ROOT}/config/ip-addresses.conf" 2>/dev/null || true
|
|
[ -f "${PROJECT_ROOT}/.env" ] && set +u && source "${PROJECT_ROOT}/.env" 2>/dev/null; set -u
|
|
|
|
VMID=6201
|
|
PROXMOX_HOST="${PROXMOX_HOST_R630_02:-192.168.11.12}"
|
|
DRY_RUN=false
|
|
|
|
while [[ $# -gt 0 ]]; do
|
|
case "$1" in
|
|
--dry-run) DRY_RUN=true; shift ;;
|
|
--host) PROXMOX_HOST="${2:-192.168.11.12}"; shift 2 ;;
|
|
*) shift ;;
|
|
esac
|
|
done
|
|
|
|
if [[ "$DRY_RUN" == true ]]; then
|
|
echo "[DRY-RUN] Would run: ssh root@${PROXMOX_HOST} 'pct start ${VMID}'"
|
|
echo " (Container 6201 = firefly-ali-1 on r630-02. See OPERATIONAL_RUNBOOKS Maintenance.)"
|
|
exit 0
|
|
fi
|
|
|
|
echo "Starting CT ${VMID} (firefly-ali-1) on ${PROXMOX_HOST}..."
|
|
if ssh -o ConnectTimeout=10 -o BatchMode=yes "root@${PROXMOX_HOST}" "pct start ${VMID}"; then
|
|
echo "Started ${VMID}."
|
|
else
|
|
echo "Failed to start ${VMID} (may already be running or host unreachable). Check: ssh root@${PROXMOX_HOST} 'pct status ${VMID}'"
|
|
exit 1
|
|
fi
|