Email me a patch of send me a pull request if this works and you feel 
should be included

On Wednesday, 12 December 2012 09:30:24 UTC-6, Richard wrote:
>
> Didn't test it, but I take the SSL creation commands from 
> setup-web2py-ubuntu.sh that ask for location and owner of certificat that I 
> like better and adapt them for the setup-web2py-nginx-uwsgi-ubuntu.sh 
> script in order to make these script more homogen.
>
> Here the part I change
>
> ln -s /etc/nginx/sites-available/web2py /etc/nginx/sites-enabled/web2py
> rm /etc/nginx/sites-enabled/default
> mkdir /etc/nginx/ssl
> cd /etc/nginx/ssl
> openssl genrsa 1024 > self_signed.key
> chmod 400 self_signed.key
> openssl req -new -x509 -nodes -sha1 -days 365 -key self_signed.key > 
> self_signed.cert
> openssl x509 -noout -fingerprint -text < self_signed.cert > 
> self_signed.info
>
> Thanks to include it... 
>
> I will test your script under 12.10 later to day with these mods to see if 
> it works.
>
> Richard
>
> On Wed, Dec 12, 2012 at 9:20 AM, paolo....@gmail.com <javascript:> <
> paolo....@gmail.com <javascript:>> wrote:
>
>> Sorry, but this one should be even better:
>>
>> http://askubuntu.com/questions/15853/how-can-a-script-check-if-its-being-run-as-root/15856#15856
>> Paolo
>>
>>
>> 2012/12/12 Paolo <paolo....@gmail.com <javascript:>>
>>
>>> I've just tested, you should use " with !=
>>> something like that seems to work
>>> if [ "$UID" != "0" ]; then...
>>>
>>> Paolo
>>>
>>>
>>>
>>> On Wednesday, December 12, 2012 12:48:33 PM UTC+1, Niphlod wrote:
>>>>
>>>> Updated. don't have a shell lying around, could you try it ?
>>>>
>>>>  -- 
>>>  
>>>  
>>>  
>>>
>>
>>
>>
>> -- 
>>  Paolo
>>  
>> -- 
>>  
>>  
>>  
>>
>
>

-- 



Reply via email to