querysub 0.622.0 → 0.623.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/storageSetup.ts +6 -7
package/package.json
CHANGED
package/src/storageSetup.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
process.env.PRODUCTION = "true";
|
|
2
|
-
|
|
3
|
-
//import "./inject";
|
|
2
|
+
import "./inject";
|
|
4
3
|
|
|
5
4
|
// The storage server entry point (see bin/storageserve.js): sets up the CLI args the sliftutils storage server expects, synchronizes our network trust list into its trust store, and runs its CLI.
|
|
6
5
|
|
|
7
6
|
async function main() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const { getTrustedMachineIds } = await import("./-d-trust/NetworkTrust2");
|
|
8
|
+
let trustedMachineIds = await getTrustedMachineIds();
|
|
9
|
+
let { setTrustedMachines } = await import("sliftutils/storage/remoteStorage/serverConfig");
|
|
10
|
+
await setTrustedMachines({ account: "root", machineIds: trustedMachineIds });
|
|
11
|
+
console.log(`Synchronized ${trustedMachineIds.length} trusted machines`);
|
|
13
12
|
|
|
14
13
|
await import("sliftutils/storage/remoteStorage/storageServerCli");
|
|
15
14
|
}
|