Files
epaper-dashboard/test_env_auth.sh
T
ki 28124c5617 Initial commit: epaper-dashboard for 7.3" ACeP 7-Color display
- dashboard.py: plugin-based renderer with 4x4 grid layout
- admin.py: web UI with layout editor + plugin configs
- layout.py: pack algorithm, item placement, grid system
- plugins/: clock, weather, system, spotify, strava, gmail, minimax, hello
- network_watchdog.py: WiFi AP/client mode management
- waveshare_epd_init.py: vendor driver stub
2026-08-26 14:12:43 +04:00

21 lines
839 B
Bash

#!/bin/bash
cat > /home/koptikp/epaper-dashboard/port/.env <<'ENVEOF'
EPAPER_ADMIN_USER=admin
EPAPER_ADMIN_PASSWORD=changeme123
ENVEOF
chmod 600 /home/koptikp/epaper-dashboard/port/.env
echo "=== .env geschrieben ==="
ls -la /home/koptikp/epaper-dashboard/port/.env
echo
echo "=== restart admin ==="
bash /home/koptikp/epaper-dashboard/port/start_admin.sh
sleep 2
echo
echo "=== test mit altem passwort (sollte 401) ==="
curl -s -u admin:admin -o /dev/null -w "admin:admin -> HTTP %{http_code}\n" http://127.0.0.1:8080/status.json
echo "=== test mit neuem passwort (sollte 200) ==="
curl -s -u admin:changeme123 -o /dev/null -w "admin:changeme123 -> HTTP %{http_code}\n" http://127.0.0.1:8080/status.json
echo
echo "=== sicherheits-check: passwort in logs? ==="
grep -E "changeme123|admin:" /tmp/admin.log || echo "(kein Treffer in logs)"