From ce812e14c76e8619f99241e491d187f3a125df7c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 17 Oct 2021 15:56:31 +0200 Subject: [PATCH] core: improve detection for s3 settings to trigger backup Signed-off-by: Jens Langhammer --- authentik/core/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/core/tasks.py b/authentik/core/tasks.py index 844560550..280ac4ddd 100644 --- a/authentik/core/tasks.py +++ b/authentik/core/tasks.py @@ -60,7 +60,7 @@ def clean_expired_models(self: MonitoredTask): def backup_database(self: MonitoredTask): # pragma: no cover """Database backup""" self.result_timeout_hours = 25 - if SERVICE_HOST_ENV_NAME in environ and not CONFIG.y("postgresql.s3_backup"): + if SERVICE_HOST_ENV_NAME in environ and not CONFIG.y("postgresql.s3_backup.bucket"): LOGGER.info("Running in k8s and s3 backups are not configured, skipping") self.set_status( TaskResult(