Some checks failed
Two marks (M and R) side by side, EN + DE, with the site-header and real 16 px favicon context for each. Votes go to ops/poll/pollsvc.py, a stdlib Python service behind nginx at /api/poll/ (SQLite, systemd DynamicUser, rate-limited). Devices are counted once via a salted hash of IP + user agent; the privacy pages document it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MScAinbyMdeNc7H2BZdnnG
19 lines
636 B
Bash
Executable file
19 lines
636 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Install / update the poll counter on forge-runner-01. Idempotent.
|
|
#
|
|
# Usage (on the VM, with sudo):
|
|
# sudo ops/poll/setup-poll.sh
|
|
set -euo pipefail
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
install -d -m 0755 /opt/furtka-poll
|
|
install -m 0644 "$HERE/pollsvc.py" /opt/furtka-poll/pollsvc.py
|
|
install -m 0644 "$HERE/furtka-poll.service" /etc/systemd/system/furtka-poll.service
|
|
|
|
systemctl daemon-reload
|
|
systemctl enable --now furtka-poll
|
|
systemctl restart furtka-poll
|
|
sleep 1
|
|
systemctl --no-pager --lines=3 status furtka-poll
|
|
curl -fsS http://127.0.0.1:8090/logo && echo
|
|
echo "OK: furtka-poll running on 127.0.0.1:8090"
|