mirror of https://github.com/jumpserver/jumpserver
perf: xpack can disable force
parent
8450c49e25
commit
7a12c3737f
|
@ -11,7 +11,10 @@ current_year = datetime.datetime.now().year
|
|||
corporation = f'FIT2CLOUD 飞致云 © 2014-{current_year}'
|
||||
|
||||
XPACK_DIR = os.path.join(const.BASE_DIR, 'xpack')
|
||||
XPACK_ENABLED = os.path.isdir(XPACK_DIR)
|
||||
XPACK_DISABLED = os.environ.get('XPACK_ENABLED') in ['0', 'false', 'False', 'no', 'No']
|
||||
XPACK_ENABLED = False
|
||||
if not XPACK_DISABLED:
|
||||
XPACK_ENABLED = os.path.isdir(XPACK_DIR)
|
||||
XPACK_TEMPLATES_DIR = []
|
||||
XPACK_CONTEXT_PROCESSOR = []
|
||||
XPACK_LICENSE_IS_VALID = False
|
||||
|
|
Loading…
Reference in New Issue