SiaPrime changes

This commit is contained in:
Scott E. Graves
2018-11-03 12:43:19 -05:00
parent cc8fc6f05c
commit 594730f57c

View File

@@ -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);