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') 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()

View File

@ -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"