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>
34 lines
967 B
Bash
Executable File
34 lines
967 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Example script using shared modules
|
|
# Demonstrates how to use the modular approach
|
|
|
|
set -euo pipefail
|
|
|
|
# Load shared modules
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/lib/ip-config.sh"
|
|
source "$SCRIPT_DIR/lib/logging.sh"
|
|
source "$SCRIPT_DIR/lib/proxmox-api.sh"
|
|
source "$SCRIPT_DIR/lib/ssh-helpers.sh"
|
|
|
|
# Now you can use:
|
|
# - IP variables: $PROXMOX_HOST_ML110, $IP_BLOCKSCOUT, etc.
|
|
# - Logging functions: log_info, log_success, log_error, etc.
|
|
# - Proxmox API: proxmox_api_call, check_container_status, etc.
|
|
# - SSH helpers: ssh_proxmox, ssh_container, test_ssh_connection
|
|
|
|
log_header "Example Script Using Modules"
|
|
|
|
log_info "Proxmox Host: $PROXMOX_HOST_ML110"
|
|
log_info "Blockscout IP: $IP_BLOCKSCOUT"
|
|
|
|
# Test SSH connection
|
|
if test_ssh_connection "$PROXMOX_HOST_ML110"; then
|
|
log_success "Connection test passed"
|
|
else
|
|
log_error "Connection test failed"
|
|
exit 1
|
|
fi
|
|
|
|
log_success "Example complete!"
|