reverse order of cron commands
does not affect linux but fixes issue with busybox caring about order fixes #2807
This commit is contained in:
parent
81e4042fa4
commit
7a0b488244
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ class CronTab(object):
|
||||||
return "chown %s %s ; su '%s' -c '%s %s'" % (pipes.quote(self.user), pipes.quote(path), pipes.quote(self.user), CRONCMD, pipes.quote(path))
|
return "chown %s %s ; su '%s' -c '%s %s'" % (pipes.quote(self.user), pipes.quote(path), pipes.quote(self.user), CRONCMD, pipes.quote(path))
|
||||||
else:
|
else:
|
||||||
user = '-u %s' % pipes.quote(self.user)
|
user = '-u %s' % pipes.quote(self.user)
|
||||||
return "%s %s %s" % (CRONCMD , user, pipes.quote(path))
|
return "%s %s %s" % (CRONCMD , pipes.quote(path), user)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue