debian: strip secret_key of extraneous spaces/newlines (#67282)

This commit is contained in:
Frédéric Péters 2022-07-12 10:44:06 +02:00
parent f51adbe4e3
commit 53a3226e55
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ import hobo.logger
DEBUG = False
SECRET_KEY = open('/etc/%s/secret' % PROJECT_NAME).read()
with open('/etc/%s/secret' % PROJECT_NAME) as fd:
SECRET_KEY = fd.read().strip()
ADMINS = (('Tous', 'root@localhost'),)