feat: Add heartbeat phone-home script and norn SSH key

- parahub-heartbeat: cURL heartbeat to cloud API every 5min via cron
- authorized_keys: add norn@parahub-ng for WiFi password SSH retrieval
- 99-parahub-mesh: section 12 enables cron + heartbeat on first boot

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 18:30:20 +00:00
parent 454e811594
commit 69a8285c8c
3 changed files with 43 additions and 1 deletions

View File

@@ -482,7 +482,17 @@ YGG_ADDR=$(yggdrasil -address -useconffile /etc/yggdrasil.conf 2>/dev/null || ec
echo "YGGDRASIL_ADDRESS=${YGG_ADDR}" >> /etc/parahub/keys
# ============================================================================
# 12. FINAL
# 12. HEARTBEAT (phone-home to Parahub cloud)
# ============================================================================
chmod +x /usr/bin/parahub-heartbeat
# Cron: every 5 minutes
echo "*/5 * * * * /usr/bin/parahub-heartbeat" >> /etc/crontabs/root
/etc/init.d/cron enable
# ============================================================================
# 13. FINAL
# ============================================================================
# Log completion