Fix mail queue and logs commands

- Hardcode paths: /usr/sbin/postqueue, /usr/sbin/postsuper, /usr/bin/journalctl
- Fix postqueue: remove -p flag (conflicts with -j)
- Add stderr logging for queue errors
This commit is contained in:
Christoph Haas 2026-03-22 01:40:06 +01:00
parent d56722ddb9
commit 060f88dffe
3 changed files with 14 additions and 8 deletions

View file

@ -26,7 +26,7 @@ func GetLogs(hours int, filter string) ([]LogEntry, error) {
"--no-pager",
}
cmd := exec.CommandContext(ctx, "journalctl", args...)
cmd := exec.CommandContext(ctx, "/usr/bin/journalctl", args...)
var out bytes.Buffer
cmd.Stdout = &out