From b4db0c1a6cfaf3222cf399fdc4bb25617c68db64 Mon Sep 17 00:00:00 2001 From: Markus Poerschke Date: Wed, 17 Feb 2021 22:04:28 +0100 Subject: [PATCH] Fix generation of crontab There was a missing placeholder in the template string. That caused that `%!(EXTRA string=...` is added to the crontab file which causes commands to fail. --- plugins/cron/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cron/functions.go b/plugins/cron/functions.go index 28dc6dd42..4ce0c349c 100644 --- a/plugins/cron/functions.go +++ b/plugins/cron/functions.go @@ -33,7 +33,7 @@ func (t templateCommand) CronCommand() string { return t.AltCommand } - return fmt.Sprintf("dokku --rm run --cron-id %s %s", t.ID, t.App, t.Command) + return fmt.Sprintf("dokku --rm run --cron-id %s %s %s", t.ID, t.App, t.Command) } func fetchCronEntries(appName string) ([]templateCommand, error) {