Working tree was 3+ months ahead of git in uncommitted local edits, sitting on a detached HEAD at d3611a8 (2026-04-09), never reconciled with main. Committing as-is on its own branch, without touching main or the detached HEAD, to stop these files existing only on this one server: - public/index.html + server.js: PDF export add-on gated to client Izzy, full Adoption Tracker overlay (ASPA + IPv6 tabs) -- neither exists anywhere in git history on any branch until now - audit/: daily/rotating audit scripts + email report sender, previously untracked - scripts/: tunnel-cleanup.sh, refresh-peeringdb.sh, previously untracked - deploy-from-scp.sh, webhook-subs.json, hijack-alerts.json, aspa-adoption-history.json: previously untracked runtime/deploy state - public/public/: duplicate mirror of the HTML variants found alongside the real public/ dir, preserved as found No reconciliation with main attempted here -- that needs a deliberate pass, not a side effect of a backup commit.
10 lines
379 B
Bash
Executable File
10 lines
379 B
Bash
Executable File
#!/bin/bash
|
|
# Deploy PeerCortex from pre-copied files (server.js already in place via SCP)
|
|
BACKUP_DIR=/opt/peercortex-app/backups
|
|
mkdir -p $BACKUP_DIR
|
|
TS=$(date +%Y%m%d_%H%M%S)
|
|
cp /opt/peercortex-app/server.js $BACKUP_DIR/server.js.$TS
|
|
ls -t $BACKUP_DIR/server.js.* 2>/dev/null | tail -n +21 | xargs rm -f 2>/dev/null
|
|
echo "[backup] Saved server.js ($TS)"
|
|
pm2 restart peercortex
|