From 96f0c64b2eddfdcb636df883705d0a899fae7a1d Mon Sep 17 00:00:00 2001 From: miketwc1984 Date: Fri, 22 Mar 2024 16:59:18 -0400 Subject: [PATCH] migration cleanup --- bin/storage-migrate.js | 12 +++--------- bundle | 3 ++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/bin/storage-migrate.js b/bin/storage-migrate.js index 89364ab..8b0cd97 100644 --- a/bin/storage-migrate.js +++ b/bin/storage-migrate.js @@ -118,12 +118,8 @@ var StorageMigrator = { if (config.uid && (process.getuid() == 0)) { self.logPrint( 3, "Switching to user: " + config.uid ); process.setuid( config.uid ); - } - - self.logPrint(2, "before test"); - - self.testStorage(); - // self.startMigration(); + } + self.testStorage(); } ); // series @@ -133,13 +129,11 @@ var StorageMigrator = { // test both old and new storage var self = this; this.logDebug(3, "Testing storage engines"); - self.logPrint(2, "test begin test"); - + async.series( [ function(callback) { self.oldStorage.get('global/users', callback); - self.logPrint(2, "test old users"); }, function(callback) { self.newStorage.put('test/test1', { "foo1": "bar1" }, function(err) { diff --git a/bundle b/bundle index b7abd16..84eefd2 100755 --- a/bundle +++ b/bundle @@ -142,6 +142,7 @@ mkdir -p $dist cp -r htdocs $dist/ cp -r bin $dist/ cp package.json $dist/bin/ +rm $dist/bin/storage-migrate.js $dist/bin/run-detached.js # ------------------------------- @@ -327,9 +328,9 @@ if [ "$sql" = 1 ]; then mssql=1 mysql=1 pgsql=1 + sqlite=1 fi -# for sqlite - just bundle plain SQL engine with no driver # driver need to be installed separetly (cannot bundle native libs) if [ "$mysql" = 1 ]; then