2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 07:28:25 +00:00

fix: bench path used for config

This commit is contained in:
Gavin D'souza 2020-04-17 11:26:44 +05:30
parent f28c3765d8
commit 6881c93388

View File

@ -367,7 +367,7 @@ def setup_backups(bench_path='.'):
logger.info('setting up backups')
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')
bench.set_frappe_version(bench_path=bench_path)
system_crontab = CronTab(user=user)