summarylogtreecommitdiffstats
path: root/crontab_calls.patch
blob: ad27e4d4d1f277c51fe3367fc7861373fc4285d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/plugins/cron/functions.go 2022-12-09 00:42:16.085851600 +0100
+++ b/plugins/cron/functions.go 2022-12-09 00:44:28.535851600 +0100
@@ -81,13 +81,13 @@
 }

 func deleteCrontab() error {
-	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("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 {
@@ -163,7 +163,7 @@
 		return fmt.Errorf("Unable to template out schedule file: %v", err)
 	}

-	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 {