feat: add the ability to specify a custom mailto for all cron output

This commit is contained in:
Jose Diaz-Gonzalez
2023-08-19 23:59:00 -04:00
parent a433508fb1
commit c23e878e7d
12 changed files with 187 additions and 5 deletions

View File

@@ -116,8 +116,11 @@ func writeCronEntries() error {
return deleteCrontab()
}
mailto, _ := common.PlugnTriggerOutputAsString("cron-get-property", []string{"--global", "mailto"}...)
data := map[string]interface{}{
"Commands": commands,
"Mailto": mailto,
}
t, err := getCronTemplate()