From 6881c9338829c0a00ff1384f1bddfc77ea568cfd Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Fri, 17 Apr 2020 11:26:44 +0530 Subject: [PATCH] fix: bench path used for config --- bench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index 49e277c9..773beb01 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -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)