From 6a3826a47c393c24a8cbe5eeda70f2dea7c20a8f Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 3 Nov 2018 12:43:19 -0500 Subject: [PATCH] SiaPrime changes --- helpers.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/helpers.js b/helpers.js index c88b27e..7857573 100644 --- a/helpers.js +++ b/helpers.js @@ -48,6 +48,11 @@ module.exports.detectRepertoryMounts = (directory, version) => { Location: '', PID: -1, }, + SiaPrime: { + Active: false, + Location: '', + PID: -1, + }, })); }); process.unref(); @@ -166,6 +171,8 @@ module.exports.executeMount = (directory, version, storageType, location, exitCa const args = []; if (storageType.toLowerCase() === 'hyperspace') { args.push('-hs'); + } else if (storageType.toLowerCase() === 'siaprime') { + args.push('-sp'); } if (os.platform() === 'linux') { args.push("-o"); @@ -208,6 +215,8 @@ module.exports.getConfig = (directory, version, storageType) => { args.push('-dc'); if (storageType.toLowerCase() === 'hyperspace') { args.push('-hs'); + } else if (storageType.toLowerCase() === 'siaprime') { + args.push('-sp'); } const process = new spawn(command, args, processOptions); @@ -254,6 +263,8 @@ module.exports.getConfigTemplate = (directory, version, storageType) => { args.push('-gt'); if (storageType.toLowerCase() === 'hyperspace') { args.push('-hs'); + } else if (storageType.toLowerCase() === 'siaprime') { + args.push('-sp'); } const process = new spawn(command, args, processOptions); @@ -417,6 +428,8 @@ module.exports.setConfigValue = (name, value, directory, storageType, version) = args.push(value); if (storageType.toLowerCase() === 'hyperspace') { args.push('-hs'); + } else if (storageType.toLowerCase() === 'siaprime') { + args.push('-sp'); } const process = new spawn(command, args, processOptions);