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:
parent
d56722ddb9
commit
060f88dffe
3 changed files with 14 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue