removed dependice on node-cdm
This commit is contained in:
parent
5c030c36c5
commit
303065c858
8
lxc.js
8
lxc.js
@ -1,15 +1,15 @@
|
||||
'use strict';
|
||||
var exec = require('child_process').exec;
|
||||
|
||||
function sysExec(command,callback){exec(command,
|
||||
function sysExec(command,callback){
|
||||
command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command
|
||||
(function(){
|
||||
exec(command,(function(){
|
||||
return function(err,data,stderr){
|
||||
if(!callback) return;
|
||||
callback(data, err, stderr);
|
||||
}
|
||||
})(callback)
|
||||
);}
|
||||
})(callback));
|
||||
};
|
||||
|
||||
var lxc = {
|
||||
create: function(name, template, config, callback){
|
||||
|
Loading…
x
Reference in New Issue
Block a user