pinokiod 1.3.65 → 1.3.66

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.65",
3
+ "version": "1.3.66",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1894,6 +1894,13 @@ class Server {
1894
1894
  // initialize kernel
1895
1895
  await this.kernel.init({ port: this.port})
1896
1896
 
1897
+
1898
+ let ex = await this.kernel.exists(this.kernel.homedir, "ENVIRONMENT")
1899
+ if (!ex) {
1900
+ let str = Environment.ENV(this.kernel.homedir)
1901
+ await fs.promises.writeFile(path.resolve(this.homedir, "ENVIRONMENT"), str)
1902
+ }
1903
+
1897
1904
  let env = await Environment.get(this.kernel.homedir)
1898
1905
  if (env && env.PINOKIO_PORT) {
1899
1906
  this.port = env.PINOKIO_PORT