changed chmod to 2.4 compat
This commit is contained in:
parent
4f9bb86e58
commit
99159b3cdd
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class CronTab(object):
|
||||||
fileh = open(self.cron_file, 'w')
|
fileh = open(self.cron_file, 'w')
|
||||||
else:
|
else:
|
||||||
filed, path = tempfile.mkstemp(prefix='crontab')
|
filed, path = tempfile.mkstemp(prefix='crontab')
|
||||||
os.chmod(path, 0o644)
|
os.chmod(path, 0644)
|
||||||
fileh = os.fdopen(filed, 'w')
|
fileh = os.fdopen(filed, 'w')
|
||||||
|
|
||||||
fileh.write(self.render())
|
fileh.write(self.render())
|
||||||
|
|
Loading…
Reference in a new issue