mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
fix auto update
This commit is contained in:
parent
db4327568f
commit
7c123bf033
@ -57,7 +57,7 @@ def get_sites_dir(bench='.'):
|
||||
def get_bench_dir(bench='.'):
|
||||
return os.path.abspath(bench)
|
||||
|
||||
def setup_auto_update():
|
||||
def setup_auto_update(bench='.'):
|
||||
exec_cmd('echo \"`crontab -l`\" | uniq | sed -e \"a0 10 * * * cd {bench_dir} && {bench} update\" | grep -v "^$" | uniq | crontab'.format(bench_dir=get_bench_dir(bench=bench),
|
||||
bench=os.path.join(get_bench_dir(bench=bench), 'env', 'bin', 'bench')))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user