mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
Merge pull request #851 from Paul-STHL/fix-arch-crontab
fix(Crontab): ArchLinux which uses the FreeBSD syntax
This commit is contained in:
commit
fb5c4d0dad
@ -243,7 +243,7 @@ def add_to_crontab(line):
|
||||
line = str.encode(line)
|
||||
if not line in current_crontab:
|
||||
cmd = ["crontab"]
|
||||
if platform.system() == 'FreeBSD':
|
||||
if platform.system() == 'FreeBSD' or platform.linux_distribution()[0]=="arch":
|
||||
cmd = ["crontab", "-"]
|
||||
s = subprocess.Popen(cmd, stdin=subprocess.PIPE)
|
||||
s.stdin.write(current_crontab)
|
||||
|
Loading…
Reference in New Issue
Block a user