[Tor www-team] Seeking Bash Scripting Experience for a Setup Script

Remco remco at verhoef.name
Sun May 18 16:28:02 UTC 2014


Hi William,

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.

https://github.com/dutchcoders/tor-download-web/blob/master/setup.sh

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.

Any suggestions / additions?

Otherwise I'll finish the script this way.

Regards,

Remco



On Sat, May 17, 2014 at 1:02 AM, William Papper <william at papper.me> wrote:

> Thank you, Remco.
>
> 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.
>
> setup.sh should:
> 1. Pull the contents of Tor’s website mirror (or even just dist/torbrowser
> if possible, since that's all we need)
>
> 2.Check the GPG keys to make sure that nothing has been modified
>
> 3. Move the download files into a mirror directory and update the URLs
> found in thank-you.js
>
> 4. Ensure that the mirror and the git repo will auto update using cron and
> will work across version numbers
>
> The current script in the repository has a rough sketch of what I was
> going for.
>
> Thanks for your help! Open up a pull request whenever you're ready. Feel
> free to ask us if you have any questions.
> On May 16, 2014 2:56 AM, "Remco" <remco at verhoef.name> wrote:
>
>> Hi,
>>
>> I'm happy to help with the bash script. Just let me know what you exactly
>> want.
>>
>> Remco
>>
>>
>> On Fri, May 16, 2014 at 5:51 AM, William Papper <william at papper.me>wrote:
>>
>>> Hi all,
>>>
>>> Do any of you have experience with Bash scripting for Linux/BSD? We
>>> added a stub for a setup script to tor-download-web<https://github.com/wpapper/tor-download-web>
>>>
>>> . The script will allow the project to create a download mirror from the
>>> contents of Tor's website mirror<https://www.torproject.org/docs/running-a-mirror.html.en>
>>>
>>> .
>>>
>>> The current version of the script (with some pseudocode) is here<https://github.com/wpapper/tor-download-web/blob/master/setup.sh>
>>>
>>> , but it is quite basic since I have very little experience with Bash
>>> scripting.
>>>
>>> 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!
>>>
>>> Sincerely,
>>> Will Papper
>>>
>>> ________________________________________________________________________
>>> Tor Website Team coordination mailing-list
>>>
>>> To unsubscribe or change other options, please visit:
>>> https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team
>>>
>>>
>>
>> ________________________________________________________________________
>> Tor Website Team coordination mailing-list
>>
>> To unsubscribe or change other options, please visit:
>> https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team
>>
>>
> ________________________________________________________________________
> Tor Website Team coordination mailing-list
>
> To unsubscribe or change other options, please visit:
> https://lists.torproject.org/cgi-bin/mailman/listinfo/www-team
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/www-team/attachments/20140518/0ec10c5e/attachment.html>


More information about the www-team mailing list