<div dir="ltr">Hi Remco,<div><br></div><div>Thank you for your work! This is great.<br><div><br></div><div>You're correct about the updating. It should update the files automatically through cron, even if we haven't updated the git repo.</div>
<div><br></div><div>Relative paths are completely fine. My thinking was that the <a href="http://torproject.org">torproject.org</a> URLs in thank-you.js could be replaced with relative paths using something like sed, but of course you can use whatever you'd like.</div>
</div><div><br></div><div>Could you expand on your version proposal? Are you marking the version number in the HTML/JS? Instead, I could add a "version" variable to thank-you.js (which would be used instead of "3.6.1" in wintbb, wintbbsig, etc), so that only the variable and the paths need to be updated. Does that seem like a good route to take?</div>
<div><br></div><div>Sincerely,</div><div>Will Papper</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 18, 2014 at 12:28 PM, Remco <span dir="ltr"><<a href="mailto:remco@verhoef.name" target="_blank">remco@verhoef.name</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="verdana, sans-serif">Hi William,</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default">
<font face="verdana, sans-serif">I've created a fork, and updated the script. It isn't completely working yet, but want to discuss the requirement of updating the js.</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br>

</font></div><div class="gmail_default"><font face="verdana, sans-serif"><a href="https://github.com/dutchcoders/tor-download-web/blob/master/setup.sh" target="_blank">https://github.com/dutchcoders/tor-download-web/blob/master/setup.sh</a></font></div>

<div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">If I understand correctly, you want the tor browser bundle to update individual compared to the tor download web? I'm having a little issue with updating the javascript file. Only way I can do this is by asking some questions when running the script, as what will be the url the downlad web will be running at. Other solution is to have relative paths in the download js, so we only have to update to the correct version. I propose to have some kind of tags (e.g. <!--VERSION--><!--ENDVERSION--> for showing version numbers in HTML, /*VERSION*//*ENDVERSION*/ for javascript, think this won't be necessary) for having actual versions updated. </font></div>

<div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">Any suggestions / additions? </font></div><div class="gmail_default">
<font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">Otherwise I'll finish the script this way.</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br>

</font></div><div class="gmail_default"><font face="verdana, sans-serif">Regards,</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">Remco</font></div>

<div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 17, 2014 at 1:02 AM, William Papper <span dir="ltr"><<a href="mailto:william@papper.me" target="_blank">william@papper.me</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Thank you, Remco.</p>
<p dir="ltr">We're seeking to create a script which allows each instance of the download site to be turned into a mirror. Ideally, someone can use git clone, run setup.sh, and have a working download mirror fully configured.</p>



<p dir="ltr">setup.sh should:<br>
1. Pull the contents of Tor’s website mirror (or even just dist/torbrowser if possible, since that's all we need)</p>
<p dir="ltr">2.Check the GPG keys to make sure that nothing has been modified</p>
<p dir="ltr">3. Move the download files into a mirror directory and update the URLs found in thank-you.js</p>
<p dir="ltr">4. Ensure that the mirror and the git repo will auto update using cron and will work across version numbers</p>
<p dir="ltr">The current script in the repository has a rough sketch of what I was going for.</p>
<p dir="ltr">Thanks for your help! Open up a pull request whenever you're ready. Feel free to ask us if you have any questions.</p><div><div>
<div class="gmail_quote">On May 16, 2014 2:56 AM, "Remco" <<a href="mailto:remco@verhoef.name" target="_blank">remco@verhoef.name</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default" style="font-size:13px">Hi,</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">



I'm happy to help with the bash script. Just let me know what you exactly want.</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">Remco</div></div></div>



<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 16, 2014 at 5:51 AM, William Papper <span dir="ltr"><<a href="mailto:william@papper.me" target="_blank">william@papper.me</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi all,<div><br></div><div>Do any of you have experience with Bash scripting for Linux/BSD? We added a stub for a setup script to <a href="https://github.com/wpapper/tor-download-web" target="_blank">tor-download-web</a><div style="display:inline-block;width:16px;min-height:16px">




 </div>. The script will allow the project to create a download mirror from the contents of Tor's <a href="https://www.torproject.org/docs/running-a-mirror.html.en" target="_blank">website mirror</a><div style="display:inline-block;width:16px;min-height:16px">




 </div>.</div><div><br></div><div>The current version of the script (with some pseudocode) is <a href="https://github.com/wpapper/tor-download-web/blob/master/setup.sh" target="_blank">here</a><div style="display:inline-block;width:16px;min-height:16px">




 </div>, but it is quite basic since I have very little experience with Bash scripting.</div><div><br></div><div>Would someone who knows Bash be willing to create the setup script? This should be a very quick job for someone with experience, and it would be incredibly helpful. Thanks for your help!</div>




<div><br></div><div>Sincerely,</div><div>Will Papper</div></div>
<br>________________________________________________________________________<br>
Tor Website Team coordination mailing-list<br>
<br>
To unsubscribe or change other options, please visit:<br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team</a><br>
<br></blockquote></div><br></div>
<br>________________________________________________________________________<br>
Tor Website Team coordination mailing-list<br>
<br>
To unsubscribe or change other options, please visit:<br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team</a><br>
<br></blockquote></div>
</div></div><br>________________________________________________________________________<br>
Tor Website Team coordination mailing-list<br>
<br>
To unsubscribe or change other options, please visit:<br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team</a><br>
<br></blockquote></div><br></div>
</div></div><br>________________________________________________________________________<br>
Tor Website Team coordination mailing-list<br>
<br>
To unsubscribe or change other options, please visit:<br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team</a><br>
<br></blockquote></div><br></div>