mirror of
https://github.com/dokku/dokku.git
synced 2026-05-18 13:15:19 +02:00
fix: ignore case where crontab does not exist for user
This commit is contained in:
@@ -20,11 +20,8 @@ func deleteCrontab() error {
|
||||
Args: []string{"-l", "-u", "dokku"},
|
||||
Sudo: true,
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("Unable to remove schedule file: %w", err)
|
||||
}
|
||||
if result.ExitCode != 0 {
|
||||
return fmt.Errorf("Unable to remove schedule file: %s", result.StderrContents())
|
||||
if err != nil || result.ExitCode != 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
result, err = common.CallExecCommand(common.ExecCommandInput{
|
||||
|
||||
Reference in New Issue
Block a user