now using node-posix

This commit is contained in:
Spyros Ligouras 2013-07-19 03:45:02 +03:00
parent 45d31b37c1
commit a3517c3516
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
fs = require('fs')
async = require('async')
request = require('request')
getuid = require('getuid')
posix = require('posix')
{exec} = require('child_process')
API_ENDPOINT = 'http://paras.rulemotion.com:1337'
@ -50,7 +50,7 @@ bootstrapTasks = [
]
setHakiEnv = (callback) ->
process.setuid(getuid('haki'))
process.setuid(posix.getpwnam('haki').uid)
process.chdir(HAKI_PATH)
callback()

View File

@ -5,7 +5,7 @@
"coffee-script": "~1.6.3",
"async": "~0.2.9",
"request": "~2.22.0",
"getuid": "~0.0.1"
"posix": "~1.0.2"
},
"engines": [
"node >= 0.10.x"