summarylogtreecommitdiffstats
path: root/crontab_calls.patch
diff options
context:
space:
mode:
authorD1ceWard2022-03-08 22:49:54 +0100
committerD1ceWard2022-03-08 22:49:54 +0100
commit9b5751dc18459cc98e153f4874ae4d20061d7674 (patch)
treee09d48a26bb093394eef97a8025a4d15a1140882 /crontab_calls.patch
parent9d0d63d2c370cc3b24793488cb30c59c45ca8452 (diff)
downloadaur-9b5751dc18459cc98e153f4874ae4d20061d7674.tar.gz
upgpkg: dokku 0.27.0-1
upstream release
Diffstat (limited to 'crontab_calls.patch')
-rw-r--r--crontab_calls.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/crontab_calls.patch b/crontab_calls.patch
index b02796523747..e965a9a26c93 100644
--- a/crontab_calls.patch
+++ b/crontab_calls.patch
@@ -1,18 +1,18 @@
---- a/plugins/cron/functions.go 2021-06-07 02:25:18.000000000 +0200
-+++ b/plugins/cron/functions.go 2021-07-12 15:58:47.292094682 +0200
+--- a/plugins/cron/functions.go 2022-03-08 17:40:53.000000000 +0100
++++ b/plugins/cron/functions.go 2022-03-08 22:37:11.883706200 +0100
@@ -81,13 +81,13 @@
}
func deleteCrontab() error {
-- command := common.NewShellCmd("crontab -l -u dokku")
-+ command := common.NewShellCmd("crontab -l")
+- command := common.NewShellCmd("sudo /usr/bin/crontab -l -u dokku")
++ command := common.NewShellCmd("sudo /usr/bin/crontab -l")
command.ShowOutput = false
if !command.Execute() {
return nil
}
-- command = common.NewShellCmd("crontab -r -u dokku")
-+ command = common.NewShellCmd("crontab -r")
+- command = common.NewShellCmd("sudo /usr/bin/crontab -r -u dokku")
++ command = common.NewShellCmd("sudo /usr/bin/crontab -r")
command.ShowOutput = false
out, err := command.CombinedOutput()
if err != nil {
@@ -20,8 +20,8 @@
return fmt.Errorf("Unable to template out schedule file: %v", err)
}
-- command := common.NewShellCmd(fmt.Sprintf("crontab -u dokku %s", tmpFile.Name()))
-+ command := common.NewShellCmd(fmt.Sprintf("crontab %s", tmpFile.Name()))
+- command := common.NewShellCmd(fmt.Sprintf("sudo /usr/bin/crontab -u dokku %s", tmpFile.Name()))
++ command := common.NewShellCmd(fmt.Sprintf("sudo /usr/bin/crontab %s", tmpFile.Name()))
command.ShowOutput = false
out, err := command.CombinedOutput()
if err != nil {