sync: auto-sync from HOWARD-HOME at 2026-06-21 12:25:00
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-06-21 12:25:00
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
set -uo pipefail
|
||||
REPO="$(git rev-parse --show-toplevel 2>/dev/null || echo .)"
|
||||
VAULT="$REPO/.claude/scripts/vault.sh"
|
||||
# Mandatory skill error logging (skill-creator rule): log GENUINE functional failures only.
|
||||
logerr(){ bash "$REPO/.claude/scripts/log-skill-error.sh" "unifi-wifi/pfsense-backend" "$1" --context "${2:-}" >/dev/null 2>&1 || true; }
|
||||
VP="${1:?usage: pfsense-backend.sh <vault-path> <action> [args] [--apply]}"
|
||||
ACT="${2:?action: audit|pf-list|pf-disable|pf-enable|pf-delete|pf-set-ports|fw-list|fw-disable|fw-enable|block-ips|setup}"
|
||||
shift 2
|
||||
@@ -215,3 +217,6 @@ try:
|
||||
except urllib.error.HTTPError as e: err(e)
|
||||
except Exception as e: print("[FAIL]",e); sys.exit(1)
|
||||
PY
|
||||
rc=$?
|
||||
[ "$rc" -ne 0 ] && logerr "pfsense-backend REST call failed" "vp=$VP act=$ACT rc=$rc"
|
||||
exit $rc
|
||||
|
||||
Reference in New Issue
Block a user