mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
now using node-posix
This commit is contained in:
parent
45d31b37c1
commit
a3517c3516
@ -1,7 +1,7 @@
|
|||||||
fs = require('fs')
|
fs = require('fs')
|
||||||
async = require('async')
|
async = require('async')
|
||||||
request = require('request')
|
request = require('request')
|
||||||
getuid = require('getuid')
|
posix = require('posix')
|
||||||
{exec} = require('child_process')
|
{exec} = require('child_process')
|
||||||
|
|
||||||
API_ENDPOINT = 'http://paras.rulemotion.com:1337'
|
API_ENDPOINT = 'http://paras.rulemotion.com:1337'
|
||||||
@ -50,7 +50,7 @@ bootstrapTasks = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
setHakiEnv = (callback) ->
|
setHakiEnv = (callback) ->
|
||||||
process.setuid(getuid('haki'))
|
process.setuid(posix.getpwnam('haki').uid)
|
||||||
process.chdir(HAKI_PATH)
|
process.chdir(HAKI_PATH)
|
||||||
callback()
|
callback()
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"coffee-script": "~1.6.3",
|
"coffee-script": "~1.6.3",
|
||||||
"async": "~0.2.9",
|
"async": "~0.2.9",
|
||||||
"request": "~2.22.0",
|
"request": "~2.22.0",
|
||||||
"getuid": "~0.0.1"
|
"posix": "~1.0.2"
|
||||||
},
|
},
|
||||||
"engines": [
|
"engines": [
|
||||||
"node >= 0.10.x"
|
"node >= 0.10.x"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user