Move version out of config.js

We now store this in a file called VERSION inside the tarball
itself.
This commit is contained in:
Girish Ramakrishnan
2018-10-27 10:53:47 -07:00
parent 7ad069fd94
commit 2688a57d46
10 changed files with 15 additions and 18 deletions

View File

@@ -45,7 +45,6 @@ exports = module.exports = {
isAdminDomainLocked: isAdminDomainLocked,
// for testing resets to defaults
_setVersion: setVersion,
_reset: _reset
};
@@ -211,11 +210,7 @@ function sysadminOrigin() {
}
function version() {
return get('version');
}
function setVersion(version) {
set('version', version);
return fs.readFileSync(path.join(__dirname, '../VERSION'), 'utf8').trim();
}
function database() {