mirror of
https://github.com/henrygd/beszel.git
synced 2026-10-22 06:12:33 +00:00
The agent runs as the beszel user under ProtectSystem=strict, so package managers that write temp, cache or log files failed with only "exit status 1" in the log. - Include the command's stderr in package update check errors. - dnf5: point XDG_STATE_HOME and XDG_CACHE_HOME into the agent's data dir. They default to $HOME, which is /nonexistent for the beszel user. With -C, dnf5 still reads the system metadata cache. - zypper: keep the solv cache in the data dir with --solv-cache-dir, since the agent user cannot rebuild it in /var/cache/zypp. - install-agent.sh, Debian unit: add PrivateTmp=yes. dnf4 (Rocky, Alma) and zypper keep temporary files in /var/tmp, which ProtectSystem=strict makes read-only. The install script also adds it to existing units when re-run.