short-circuit updates from prerelease to release version

Fixes #575
This commit is contained in:
girish@cloudron.io
2016-01-25 14:48:09 -08:00
parent 5254d3325f
commit ac3681296e
2 changed files with 11 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ exports = module.exports = {
fqdn: fqdn,
token: token,
version: version,
setVersion: setVersion,
isCustomDomain: isCustomDomain,
database: database,
@@ -179,6 +180,10 @@ function version() {
return get('version');
}
function setVersion(version) {
set('version', version);
}
function isCustomDomain() {
return get('isCustomDomain');
}