diff options
author | Fabien LEFEBVRE (d1ceward) | 2024-04-08 17:08:41 +0200 |
---|---|---|
committer | Fabien LEFEBVRE (d1ceward) | 2024-04-08 17:08:41 +0200 |
commit | 5128de1fd1e1801017d49f1188d160971f6ce26b (patch) | |
tree | 9d0831d04f559737afad99f6bf11fc5a3366a640 /scheduler-docker-local.patch | |
parent | 7761eb977f4bde99efb0553796f1995ddec8a538 (diff) | |
download | aur-5128de1fd1e1801017d49f1188d160971f6ce26b.tar.gz |
upgpkg: dokku 0.34.4-2
Diffstat (limited to 'scheduler-docker-local.patch')
-rw-r--r-- | scheduler-docker-local.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/scheduler-docker-local.patch b/scheduler-docker-local.patch new file mode 100644 index 000000000000..2dde83c57428 --- /dev/null +++ b/scheduler-docker-local.patch @@ -0,0 +1,34 @@ +--- a/plugins/scheduler-docker-local/functions.go 2024-04-07 07:41:27.000000000 +0200 ++++ b/plugins/scheduler-docker-local/functions.go 2024-04-08 16:44:44.999643158 +0200 +@@ -16,16 +16,16 @@ + + func deleteCrontab() error { + result, err := common.CallExecCommand(common.ExecCommandInput{ +- Command: "crontab", +- Args: []string{"-l", "-u", "dokku"}, ++ Command: "sudo", ++ Args: []string{"crontab", "-l", "-u", "dokku"}, + }) + if err != nil || result.ExitCode != 0 { + return nil + } + + result, err = common.CallExecCommand(common.ExecCommandInput{ +- Command: "crontab", +- Args: []string{"-r", "-u", "dokku"}, ++ Command: "sudo", ++ Args: []string{"crontab", "-r", "-u", "dokku"}, + }) + if err != nil { + return fmt.Errorf("Unable to remove schedule file: %w", err) +@@ -153,8 +153,8 @@ + } + + result, err := common.CallExecCommand(common.ExecCommandInput{ +- Command: "crontab", +- Args: []string{"-u", "dokku", tmpFile.Name()}, ++ Command: "sudo", ++ Args: []string{"crontab", "-u", "dokku", tmpFile.Name()}, + }) + if err != nil { + return fmt.Errorf("Unable to update schedule file: %w", err) |