If /etc/hwmonDaemon/.env already exists and has a real API key,
skip the prompt and preserve the file entirely. Only write a new
.env when none exists or it still has the placeholder value.
Safe to run freshStart.sh on existing hosts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When freshStart.sh runs on a new PVE node, it now installs nut-client,
configures MODE=netclient, and writes upsmon.conf pointing to monitor-02
as slave — prompts for NUT_PASSWORD during setup.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Installs Promtail (Grafana Loki agent) to ship host logs to the
central Loki instance at 10.10.10.69:3100. Scrapes syslog, auth,
kernel, daemon, pveproxy, pvedaemon, pve-tasks, ceph, and systemd
journal logs with per-host labeling.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Detects PVE vs PBS at startup, installs platform-specific packages
(iperf3/fio for PVE, zfsutils-linux for PBS), and generates .env
with all hwmonDaemon config options pre-populated based on platform.
Fixes: LotusGuild/hwmonDaemon#5
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>