Skip to content

Commit

Permalink
reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
amark committed Apr 28, 2023
1 parent 8c4d38e commit 1304ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1304ef9

Please sign in to comment.