only test once

This commit is contained in:
Matthias 2022-02-28 19:41:23 +01:00
parent 9552482471
commit 63977d47ce
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -172,10 +172,12 @@ class InvenTreeConfig(AppConfig):
set_variables += 1
if set_variables == 0:
settings.USER_ADDED = True
return
if set_variables < 3:
logger.warn('Not all required settings for adding a user on startup are present:\nINVENTREE_SET_USER, INVENTREE_SET_EMAIL, INVENTREE_SET_PASSWORD')
settings.USER_ADDED = True
return
# create user