Skip to content

Commit

Permalink
Version 0.9.24
Browse files Browse the repository at this point in the history
- Enable storage transactions by default.
- Ship with new storage repair script.
- Ensure Node.js version is 16+ on startup.
  • Loading branch information
jhuckaby committed Jul 17, 2023
1 parent 0f5c041 commit 52920c9
Show file tree
Hide file tree
Showing 6 changed files with 461 additions and 7 deletions.
8 changes: 7 additions & 1 deletion bin/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var util = require('util');
var os = require('os');
var cp = require('child_process');

var installer_version = '1.4';
var installer_version = '1.5';
var base_dir = '/opt/cronicle';
var log_dir = base_dir + '/logs';
var log_file = '';
Expand All @@ -23,6 +23,12 @@ var gh_head_tarball_url = 'https://github.com/jhuckaby/Cronicle/archive/master.t
var packages_to_check = ['couchbase', 'redis', 'ioredis', 'ioredis-timeout', 'sqlite3'];
var packages_to_rescue = {};

// Error out if Node.js version is old
if (process.version.match(/^v?(\d+)/) && (parseInt(RegExp.$1) < 16) && !process.env['CRONICLE_OLD']) {
console.error("\nERROR: You are using an incompatible version of Node.js (" + process.version + "). Please upgrade to v16 or later. Instructions: https://nodejs.org/en/download/package-manager\n\nTo ignore this error and run unsafely, set a CRONICLE_OLD environment variable. Do this at your own risk.\n");
process.exit(1);
}

var restore_packages = function() {
// restore packages that npm killed during upgrade
var cmd = "npm install";
Expand Down
Loading

0 comments on commit 52920c9

Please sign in to comment.