2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-27 22:39:03 +00:00

fix auto update

This commit is contained in:
Pratik Vyas 2014-07-11 10:29:17 +05:30
parent db4327568f
commit 7c123bf033

View File

@ -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')))