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.
This commit is contained in:
Markus Poerschke committed 2021-02-17 22:04:28 +01:00
1 parent cd97ac3388
commit b4db0c1a6c
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ func (t templateCommand) CronCommand() string {
return t.AltCommand 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) { func fetchCronEntries(appName string) ([]templateCommand, error) {