pinokiod 3.8.12 → 3.8.14

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/kernel/bin/caddy.js +15 -15
  2. package/package.json +1 -1
@@ -316,21 +316,7 @@ class Caddy {
316
316
  }
317
317
  })
318
318
  })
319
- console.log("req", req)
320
- ondata({
321
- title: "Password",
322
- description: "Enter your system password to add the HTTPS certificate",
323
- form: [{
324
- type: "password",
325
- autofocus: true,
326
- key: "password",
327
- placeholder: "System password",
328
- }]
329
- }, "input")
330
- console.log("Wait until", id)
331
- let response = await this.kernel.api.wait(id)
332
- console.log({ response })
333
- if (this.kernel.ploatform === "win32") {
319
+ if (this.kernel.platform === "win32") {
334
320
  await this.kernel.exec({
335
321
  message: `caddy trust`,
336
322
  path: this.kernel.homedir
@@ -342,6 +328,20 @@ class Caddy {
342
328
  // }
343
329
  })
344
330
  } else {
331
+ console.log("req", req)
332
+ ondata({
333
+ title: "Password",
334
+ description: "Enter your system password to add the HTTPS certificate",
335
+ form: [{
336
+ type: "password",
337
+ autofocus: true,
338
+ key: "password",
339
+ placeholder: "System password",
340
+ }]
341
+ }, "input")
342
+ console.log("Wait until", id)
343
+ let response = await this.kernel.api.wait(id)
344
+ console.log({ response })
345
345
  await this.kernel.exec({
346
346
  message: `echo ${response.password} | sudo -S caddy trust`,
347
347
  path: this.kernel.homedir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.12",
3
+ "version": "3.8.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {