Files
html/api/v76-scripts/pages-index.sh
opus a80a3ffd6e
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
auto-commit via WEVIA vault_git intent 2026-04-19T14:36:24+00:00
2026-04-19 16:36:24 +02:00

11 lines
449 B
Bash
Executable File

#!/bin/bash
# V79 pages-index agent script
curl -sk --max-time 3 'http://127.0.0.1:5890/api/wevia-pages-registry.php?action=summary' -H 'Host: weval-consulting.com' 2>/dev/null | python3 -c "
import sys, json
try:
d = json.load(sys.stdin)
print(f'total:{d[\"total_pages\"]} ref:{d[\"referenced_pages\"]} orph:{d[\"orphans_count\"]} links:{d[\"links_count\"]} cls:{len(d[\"classes\"])}')
except Exception as e:
print('pages_index:ERR')
"