Commit d0c3ad98 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'fix/enhance-is-jh-judgment-condition' into 'master'

Fix: enhance is_jh judgment condition

See merge request gitlab-org/gitlab!66710
parents 6c958dd9 879657eb
......@@ -12,4 +12,5 @@ const ROOT_PATH = path.resolve(__dirname, '../..');
// lib/gitlab.rb: Gitlab.jh?
// Since IS_EE already satisifies the conditions of not being a FOSS_ONLY.
// const isFossOnly = JSON.parse(process.env.FOSS_ONLY || 'false');
module.exports = IS_EE && fs.existsSync(path.join(ROOT_PATH, 'jh'));
const isEEOnly = JSON.parse(process.env.EE_ONLY || 'false');
module.exports = IS_EE && !isEEOnly && fs.existsSync(path.join(ROOT_PATH, 'jh'));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment