diff options
Diffstat (limited to 'config/helpers/is_ee_env.js')
-rw-r--r-- | config/helpers/is_ee_env.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/helpers/is_ee_env.js b/config/helpers/is_ee_env.js index 801cf6abc81..78f0bd65528 100644 --- a/config/helpers/is_ee_env.js +++ b/config/helpers/is_ee_env.js @@ -3,12 +3,12 @@ const path = require('path'); const ROOT_PATH = path.resolve(__dirname, '../..'); -// The `IS_GITLAB_EE` is always `string` or `nil` +// The `FOSS_ONLY` is always `string` or `nil` // Thus the nil or empty string will result -// in using default value: true +// in using default value: false // // The behavior needs to be synchronised with // lib/gitlab.rb: Gitlab.ee? +const isFossOnly = JSON.parse(process.env.FOSS_ONLY || 'false'); module.exports = - fs.existsSync(path.join(ROOT_PATH, 'ee', 'app', 'models', 'license.rb')) && - (!process.env.IS_GITLAB_EE || JSON.parse(process.env.IS_GITLAB_EE)); + fs.existsSync(path.join(ROOT_PATH, 'ee', 'app', 'models', 'license.rb')) && !isFossOnly; |