Merge pull request #27 from wmantly/wmantly-patch-1

Update lxc.js
This commit is contained in:
Thomas Harvey 2017-10-13 00:44:38 -04:00 committed by GitHub
commit 1231dbcebc

2
lxc.js
View File

@ -5,7 +5,7 @@ var exec = require('child_process').exec;
function sysExec(command, ip, callback){ function sysExec(command, ip, callback){
ip = ip || '104.236.77.157'; ip = ip || '104.236.77.157';
command = new Buffer(command).toString('base64') command = new Buffer(command).toString('base64')
command = 'ssh -i ~/.ssh/clw_rsa -o StrictHostKeyChecking=no virt@'+ ip + ' "echo ' + command + '|base64 --decode|bash"'; command = 'ssh -i ~/.ssh/clw_rsa -o "StrictHostKeyChecking no" virt@'+ ip + ' "echo ' + command + '|base64 --decode|bash"';
// command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command; // command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command;
return exec(command, (function(callback){ return exec(command, (function(callback){