admin: Add etherpad update check

This update check notifies admin on startup (via console) or in /admin UI that they need to update Etherpad.
This commit is contained in:
Stefan 2020-06-01 18:57:53 +02:00 committed by GitHub
parent 8deac52c84
commit cffd04446e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 2 deletions

View file

@ -21,8 +21,9 @@
* limitations under the License.
*/
var log4js = require('log4js')
const log4js = require('log4js')
, NodeVersion = require('./utils/NodeVersion')
, UpdateCheck = require('./utils/UpdateCheck')
;
log4js.replaceConsole();
@ -38,6 +39,9 @@ NodeVersion.enforceMinNodeVersion('10.13.0');
*/
NodeVersion.checkDeprecationStatus('10.13.0', '1.8.3');
// Check if Etherpad version is up-to-date
UpdateCheck.check();
/*
* start up stats counting system
*/