Skip to content

Commit

Permalink
Merge pull request #23 from realPanamo/development
Browse files Browse the repository at this point in the history
Update v1.15.1
  • Loading branch information
juliarn committed May 31, 2019
2 parents f2341e0 + 38e351e commit fb70889
Show file tree
Hide file tree
Showing 9 changed files with 330 additions and 134 deletions.
6 changes: 3 additions & 3 deletions autoUpdater.js
Expand Up @@ -2,7 +2,7 @@ const config = require("./config");
const request = require("request");
const fs = require("fs-extra");
const path = require("path");
const unzip = require("unzip");
const unzipper = require("unzipper");

class AutoUpdater {

Expand Down Expand Up @@ -54,7 +54,7 @@ class AutoUpdater {
let contentFolderName = "";
return new Promise(resolve => {
fs.createReadStream(path.resolve(".update", this.updateFileName))
.pipe(unzip.Parse()).on("entry", entry => {
.pipe(unzipper.Parse()).on("entry", entry => {
const isDir = entry.type === "Directory";
if(!contentFolderName && isDir)
contentFolderName = entry.path;
Expand All @@ -78,7 +78,7 @@ class AutoUpdater {
resolve();
}).on("close", () => {
console.log("Successfully installed update!");
console.log("Stopping the PasteServer for the update to be usable...")
console.log("Stopping the PasteServer for the update to be usable...");
process.exit();
});
fs.removeSync(".update");
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -20,7 +20,7 @@

// connecting to the given database
const database = config.storage.type;
console.log(`Trying to connect to database '${database}'...`);
console.log(`Trying to use database '${database}'...`);
const documentStorage = database === "file" ? require("./storage/fileStorage") :
database === "arangodb" ? require("./storage/arangoStorage") : require("./storage/redisStorage");
if (!documentStorage) {
Expand Down

0 comments on commit fb70889

Please sign in to comment.