mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
disable setting up of autoupdate
This commit is contained in:
parent
0f6192152e
commit
6ec6016d2c
@ -10,7 +10,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
default_config = {
|
default_config = {
|
||||||
'restart_supervisor_on_update': False,
|
'restart_supervisor_on_update': False,
|
||||||
'auto_update': True,
|
'auto_update': False,
|
||||||
'serve_default_site': True,
|
'serve_default_site': True,
|
||||||
'rebase_on_pull': False,
|
'rebase_on_pull': False,
|
||||||
'update_bench_on_update': True,
|
'update_bench_on_update': True,
|
||||||
@ -96,6 +96,8 @@ def get_bench_dir(bench='.'):
|
|||||||
return os.path.abspath(bench)
|
return os.path.abspath(bench)
|
||||||
|
|
||||||
def setup_auto_update(bench='.'):
|
def setup_auto_update(bench='.'):
|
||||||
|
# disabling auto update till Frappe version 5 is stable
|
||||||
|
return
|
||||||
logger.info('setting up auto update')
|
logger.info('setting up auto update')
|
||||||
add_to_crontab('0 10 * * * cd {bench_dir} && {bench} update --auto >> {logfile} 2>&1'.format(bench_dir=get_bench_dir(bench=bench),
|
add_to_crontab('0 10 * * * cd {bench_dir} && {bench} update --auto >> {logfile} 2>&1'.format(bench_dir=get_bench_dir(bench=bench),
|
||||||
bench=os.path.join(get_bench_dir(bench=bench), 'env', 'bin', 'bench'),
|
bench=os.path.join(get_bench_dir(bench=bench), 'env', 'bin', 'bench'),
|
||||||
|
Loading…
Reference in New Issue
Block a user