From 9c80ce8ff67a1396e8bc8109ff5d95cf921f8c18 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Wed, 20 Jul 2022 16:15:16 +0200 Subject: [PATCH] backup root is configurable --- management/status_checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index 2742dfbc..2f61f1d8 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -20,6 +20,7 @@ from ssl_certificates import get_ssl_certificates, get_domain_ssl_files, check_c from mailconfig import get_mail_domains, get_mail_aliases from utils import shell, sort_domains, load_env_vars_from_file, load_settings +from backup import get_backup_root def get_services(): return [ @@ -261,7 +262,7 @@ def check_free_disk_space(rounded_values, env, output): # Check that there's only one duplicity cache. If there's more than one, # it's probably no longer in use, and we can recommend clearing the cache # to save space. The cache directory may not exist yet, which is OK. - backup_cache_path = os.path.join(env['STORAGE_ROOT'], 'backup/cache') + backup_cache_path = os.path.join(get_backup_root(env), 'cache') try: backup_cache_count = len(os.listdir(backup_cache_path)) except: