From 30daa769f83ce51649c6187665d0d27faabc7a1f Mon Sep 17 00:00:00 2001
From: Benjamin Renard <brenard@easter-eggs.com>
Date: Wed, 9 Feb 2022 12:59:55 +0100
Subject: [PATCH] debian: set media root directory in single-tenant mode
 (#61593)

License: MIT
---
 debian/debian_config.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/debian_config.py b/debian/debian_config.py
index d3181f43..c70d928d 100644
--- a/debian/debian_config.py
+++ b/debian/debian_config.py
@@ -13,6 +13,7 @@ MIDDLEWARE = ('authentic2.middleware.XForwardedForMiddleware',) + MIDDLEWARE
 DEBUG = False
 
 STATIC_ROOT = '/var/lib/authentic2/collectstatic/'
+MEDIA_ROOT = '/var/lib/authentic2/media/'
 STATICFILES_DIRS = ('/var/lib/authentic2/static',)
 TEMPLATES[0]['DIRS'] = ['/var/lib/authentic2/templates'] + TEMPLATES[0]['DIRS']
 LOCALE_PATHS = ('/var/lib/authentic2/locale',) + LOCALE_PATHS
-- 
2.30.2

