mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
reuse
This commit is contained in:
parent
8c4d38e30e
commit
1304ef90e8
@ -26,7 +26,7 @@ module.exports = function(root){
|
||||
cmd.update = function(msg, peer){ var log, pass;
|
||||
try{ pass = (''+fs.readFileSync(home+'/pass')).trim() }catch(e){}
|
||||
if(!pass || (msg.pass||'').trim() != pass){ return }
|
||||
fs.writeFile(examp+'/../updated', +new Date+'', function(){});
|
||||
root.stats.stay.updated = +new Date;
|
||||
run("bash "+examp+"/install.sh", {env: {VERSION: msg.version||''}}, function(e, out, err){
|
||||
log = e+"|"+out+"|"+err;
|
||||
mesh.say({dam: '!', log: ''+log}, peer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user