mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 23:48:24 +00:00
fix: bench path used for config
This commit is contained in:
parent
f28c3765d8
commit
6881c93388
@ -367,7 +367,7 @@ def setup_backups(bench_path='.'):
|
|||||||
logger.info('setting up backups')
|
logger.info('setting up backups')
|
||||||
|
|
||||||
bench_dir = os.path.abspath(bench_path)
|
bench_dir = os.path.abspath(bench_path)
|
||||||
user = get_config('.').get('frappe_user')
|
user = get_config(bench_path=bench_dir).get('frappe_user')
|
||||||
logfile = os.path.join(bench_dir, 'logs', 'backup.log')
|
logfile = os.path.join(bench_dir, 'logs', 'backup.log')
|
||||||
bench.set_frappe_version(bench_path=bench_path)
|
bench.set_frappe_version(bench_path=bench_path)
|
||||||
system_crontab = CronTab(user=user)
|
system_crontab = CronTab(user=user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user