2026-02-12 15:46:57 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# Verify script dependencies for scripts/verify/* and deployment/automation
|
|
|
|
|
# See scripts/verify/README.md and docs/11-references/APT_PACKAGES_CHECKLIST.md
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
REQUIRED=(bash curl jq openssl ssh)
|
|
|
|
|
# Optional: used by push-templates, storage-monitor, set-container-password, Blockscout/restart scripts, etc.
|
|
|
|
|
OPTIONAL=(sshpass rsync dig ss sqlite3 wscat websocat screen tmux htop shellcheck parallel)
|
|
|
|
|
MISSING=()
|
|
|
|
|
OPTIONAL_MISSING=()
|
|
|
|
|
|
|
|
|
|
for cmd in "${REQUIRED[@]}"; do
|
|
|
|
|
if ! command -v "$cmd" &>/dev/null; then
|
|
|
|
|
MISSING+=("$cmd")
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ ${#MISSING[@]} -gt 0 ]; then
|
|
|
|
|
echo "Missing required: ${MISSING[*]}"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for cmd in "${OPTIONAL[@]}"; do
|
|
|
|
|
if ! command -v "$cmd" &>/dev/null; then
|
|
|
|
|
OPTIONAL_MISSING+=("$cmd")
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
echo "All required dependencies present: ${REQUIRED[*]}"
|
|
|
|
|
if [ ${#OPTIONAL_MISSING[@]} -gt 0 ]; then
|
chore: sync workspace — configs, docs, scripts, CI, pnpm, submodules
- Submodule pins: dbis_core, cross-chain-pmm-lps, mcp-proxmox (local, push may be pending), metamask-integration, smom-dbis-138
- Atomic swap + cross-chain-pmm-lops-publish, deploy-portal workflow, phoenix deploy-targets, routing/aggregator matrices
- Docs, token-lists, forge proxy, phoenix API, runbooks, verify scripts
Made-with: Cursor
2026-04-21 22:01:33 -07:00
|
|
|
# Not a failure — optional tools (exit code stays 0)
|
|
|
|
|
echo "Note — optional tools not in PATH: ${OPTIONAL_MISSING[*]}"
|
|
|
|
|
echo " To install (Debian/Ubuntu): sudo apt install -y sshpass rsync dnsutils iproute2 screen tmux htop shellcheck parallel sqlite3"
|
|
|
|
|
echo " (dig: dnsutils; ss: iproute2; wscat/websocat: npm install -g wscat or cargo install websocat)"
|
2026-02-12 15:46:57 -08:00
|
|
|
fi
|
|
|
|
|
exit 0
|