mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-18 06:41:04 +00:00
reverse order of cron commands
does not affect linux but fixes issue with busybox caring about order fixes #2807
This commit is contained in:
@@ -380,7 +380,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))
|
||||
else:
|
||||
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)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user