mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
revert: restore index.html to pre-login-fix state, remove all added login files
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user