fix: always set -- on docker run commands internally to avoid parsing flags on specified commands
This commit is contained in:
@@ -42,7 +42,7 @@ func (t TemplateCommand) CronCommand() string {
|
||||
return t.AltCommand
|
||||
}
|
||||
|
||||
return fmt.Sprintf("dokku run --cron-id %s %s %s", t.ID, t.App, t.Command)
|
||||
return fmt.Sprintf("dokku run --cron-id %s %s -- %s", t.ID, t.App, t.Command)
|
||||
}
|
||||
|
||||
func FetchCronEntries(appName string) ([]TemplateCommand, error) {
|
||||
|
||||
@@ -109,7 +109,7 @@ func CommandRun(appName string, cronID string, detached bool) error {
|
||||
os.Setenv("DOKKU_CRON_ID", cronID)
|
||||
os.Setenv("DOKKU_RM_CONTAINER", "1")
|
||||
scheduler := common.GetAppScheduler(appName)
|
||||
args := append([]string{scheduler, appName, "0"}, fields...)
|
||||
args := append([]string{scheduler, appName, "0", "--"}, fields...)
|
||||
return common.PlugnTrigger("scheduler-run", args...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user