Skip to content

Commit

Permalink
migration cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Mar 22, 2024
1 parent 7448ae8 commit 96f0c64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 3 additions & 9 deletions bin/storage-migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion bundle
Original file line number Diff line number Diff line change
Expand Up @@ -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


# -------------------------------
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 96f0c64

Please sign in to comment.