revert: restore index.html to pre-login-fix state, remove all added login files

This commit is contained in:
2026-06-01 09:30:47 +00:00
parent 50452753dc
commit d4a6d8359e
7 changed files with 16 additions and 2670 deletions
+8 -1
View File
@@ -20,10 +20,17 @@ echo "Host: $HOSTNAME | Type: $AGENT_TYPE | Server: $JARVIS_URL"
# ── Dependencies ──────────────────────────────────────────────────────────────
if command -v apt-get &>/dev/null; then
apt-get install -yq python3 python3-pip curl 2>/dev/null
# Prefer apt packages to avoid externally-managed-environment errors
apt-get install -yq python3-psutil python3-requests 2>/dev/null || true
elif command -v yum &>/dev/null; then
yum install -yq python3 python3-pip curl 2>/dev/null
fi
pip3 install -q requests psutil 2>/dev/null || pip install -q requests psutil 2>/dev/null
# Install via pip only if apt didn't get them (TrueNAS, non-Debian, etc.)
python3 -c "import psutil, requests" 2>/dev/null || \
pip3 install -q --break-system-packages requests psutil 2>/dev/null || \
pip3 install -q requests psutil 2>/dev/null || \
pip install -q requests psutil 2>/dev/null || true
# ── Download agent ─────────────────────────────────────────────────────────────
mkdir -p "$INSTALL_DIR"