<div dir="ltr">Why is this script doing anything asynchronously in the first place?<div>Were you suggesting that this behavior is unavoidable in node? (<b><i><u><font face="serif">WTF</font></u></i></b>?)<br><br><div class="gmail_quote"><div dir="ltr">On Thu, May 25, 2017 at 11:57 AM Jake <<a href="mailto:jake@spaz.org">jake@spaz.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">there is a bad bug in the script we use to add keycards to the access control<br>
system, called grant_access_to_last_attempt.js<br>
<br>
that script should make the filesystem read-write before attempting to add the<br>
record, but since it's written in node, there is no sequentiality to it at all<br>
and the dinosaurs coexist with the humans like in The Flintstones and nothing<br>
gets done.<br>
<br>
I asked Corey for help and he made some changes to the script but it didn't<br>
work.  If anyone wants to fix this it would be a good idea.<br>
<br>
Presently, when someone tries to use this script to add someone to the access<br>
system, it asks all the questions and lets you fill them in and then it fails.<br>
You have to run rwroot to make the filesystem writeable and try again, typing<br>
in everything again.<br>
<br>
and then it leaves the filesystem in a writeable state, because people ignore<br>
the warning on the prompt saying to run roroot to put it back, and eventually<br>
it will ruin the disk on the front door computer.<br>
<br>
here is the github pull request, that didn't work.<br>
<br>
<a href="https://github.com/sudoroom/doorjam/pull/7" rel="noreferrer" target="_blank">https://github.com/sudoroom/doorjam/pull/7</a><br>
_______________________________________________<br>
access mailing list<br>
<a href="mailto:access@lists.sudoroom.org" target="_blank">access@lists.sudoroom.org</a><br>
<a href="https://sudoroom.org/lists/listinfo/access" rel="noreferrer" target="_blank">https://sudoroom.org/lists/listinfo/access</a><br>
</blockquote></div></div></div>