pinokiod 3.2.189 → 3.2.190
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/kernel/index.js +12 -10
- package/package.json +1 -1
package/kernel/index.js
CHANGED
|
@@ -353,22 +353,24 @@ class Kernel {
|
|
|
353
353
|
console.log("bin init finished")
|
|
354
354
|
if (this.homedir) {
|
|
355
355
|
this.shell.init().then(async () => {
|
|
356
|
-
console.log(">>>>>> this.envs", this.envs)
|
|
357
356
|
if (this.envs) {
|
|
358
357
|
this.template.update({
|
|
359
358
|
env: this.envs,
|
|
360
359
|
envs: this.envs
|
|
361
360
|
})
|
|
362
361
|
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
362
|
+
console.log({ grant_permission })
|
|
363
|
+
if (grant_permission) {
|
|
364
|
+
if (this.platform === "win32") {
|
|
365
|
+
console.log("2 Give full permission")
|
|
366
|
+
await this.bin.exec({
|
|
367
|
+
sudo: true,
|
|
368
|
+
message: `icacls ${this.homedir} /grant Users:(OI)(CI)F /T`
|
|
369
|
+
}, (stream) => {
|
|
370
|
+
ondata(stream)
|
|
371
|
+
})
|
|
372
|
+
console.log("2 Give full permission done")
|
|
373
|
+
}
|
|
372
374
|
}
|
|
373
375
|
})
|
|
374
376
|
}
|